
;
;
;     Model statements for module:  Create 9
;

413$          CREATE,        1,HoursToBaseTime(0.0),Entity 1:HoursToBaseTime(24):NEXT(414$);

414$          ASSIGN:        Create 9.NumberOut=Create 9.NumberOut + 1:NEXT(87$);


;
;
;     Model statements for module:  Assign 64
;
87$           ASSIGN:        day=day+1:NEXT(88$);


;
;
;     Model statements for module:  Dispose 17
;
88$           ASSIGN:        Dispose 17.NumberOut=Dispose 17.NumberOut + 1;
417$          DISPOSE:       Yes;


115$          CREATE,        1,TFIN:,1:NEXT(116$);

116$          WRITE,         rqueueoutput:
                             
                             tavg(time in receiptq at d1),tavg(time in receiptq at d2),davg(statistic 1),davg(statistic 2),davg(statistic 3),dmax(statistic 1), dmax(statistic 2),dmax(statistic 3),davg(statistic 4),davg(statistic 5),davg(statistic 6),dmax(statistic 4),dmax(statistic 5),dmax(statistic 6),davg(statistic 7),dmax(statistic 7),davg(statistic 8),dmax(statistic 8);
117$          DISPOSE:       No;


124$          CREATE,        1,TFIN:,1:NEXT(125$);

125$          WRITE,         rtimeinsystem:
                             
                             tavg(time in system from d1), tavg(time in system from d2),tavg(time for putaway from d1),tavg(time for putaway from d2);
126$          DISPOSE:       No;


129$          CREATE,        1,TFIN::NEXT(130$);

130$          WRITE,         utilizationf1:
                             FSTAND(forklift1,1),FSTAND(forklift1,2),FSTAND(forklift1,4);
131$          DISPOSE:       No;


132$          CREATE,        1,TFIN::NEXT(133$);

133$          WRITE,         utilizationf2:
                             FSTAND(forklift2,1),FSTAND(forklift2,2),FSTAND(forklift2,4);
134$          DISPOSE:       No;


135$          CREATE,        1,TFIN::NEXT(136$);

136$          WRITE,         utilizationf5:
                             FSTAND(forklift5,1),FSTAND(forklift5,2),FSTAND(forklift5,4);
137$          DISPOSE:       No;


138$          CREATE,        1,TFIN::NEXT(139$);

139$          WRITE,         utilizationd1:
                             FSTAND(dock 1,1),FSTAND(dock 1,2),FSTAND(dock 1,4);
140$          DISPOSE:       No;


141$          CREATE,        1,TFIN::NEXT(142$);

142$          WRITE,         utilizationd2:
                             FSTAND(dock 2,1),FSTAND(dock 2,2),FSTAND(dock 2,4);
143$          DISPOSE:       No;


155$          CREATE,        1,TFIN:,1:NEXT(156$);

156$          WRITE,         squeueoutput:
                             
                             tavg(time in shipmentq at d1),tavg(time in shipmentq at d2),nc(dispatchatruck),nc(dispatchbtruck),nc(dispatchctruck),nc(receiptatruck),nc(receiptbtruck),nc(receiptctruck),nc(#runaway),tavg(time for pickup to d1),tavg(time for pickup to d2),tavg(time for loading at d1),tavg(time for loading at d2);
157$          DISPOSE:       No;


162$          CREATE,        1,TFIN:,1:NEXT(163$);

163$          WRITE,         stimeinsystem:
                             
                             tavg(time in system from d1 for shipment),nc(# of trucks that are in system  more than 60 minutes from d1),nc(#of trucks that are from d1),tavg(time in system from d2 for shipment),nc(# of trucks that are in system  more than 60 minutes from d2),nc(#of trucks that are from d2),nc(# of trucks that are in system  more than 45 minutes from d1),nc(# of trucks that are in system  more than 45 minutes from d2);
164$          DISPOSE:       No;


;
;
;     Model statements for module:  Create 4
;

418$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c1:MinutesToBaseTime(1440):NEXT(419$);

419$          ASSIGN:        Create for receiving b shift1 c1.NumberOut=Create for receiving b shift1 c1.NumberOut + 1
                             :NEXT(240$);


;
;
;     Model statements for module:  Decide 98
;
240$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),422$,Yes:
                             Else,423$,Yes;
422$          ASSIGN:        Decide 98.NumberOut True=Decide 98.NumberOut True + 1:NEXT(318$);

423$          ASSIGN:        Decide 98.NumberOut False=Decide 98.NumberOut False + 1:NEXT(241$);


;
;
;     Model statements for module:  Assign 198
;
318$          ASSIGN:        receiptb1# c1=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,67)
                             :NEXT(242$);


;
;
;     Model statements for module:  Decide 99
;
242$          BRANCH,        1:
                             If,receiptb1# c1==0,232$,Yes:
                             If,receiptb1# c1==1,243$,Yes:
                             Else,244$,Yes;

;
;
;     Model statements for module:  Separate 5
;
244$          DUPLICATE,     100 - 50:
                             receiptb1# c1-1,428$,50:NEXT(427$);

427$          ASSIGN:        Separate 5.NumberOut Orig=Separate 5.NumberOut Orig + 1:NEXT(243$);

428$          ASSIGN:        Separate 5.NumberOut Dup=Separate 5.NumberOut Dup + 1:NEXT(243$);


;
;
;     Model statements for module:  Process 10
;
243$          ASSIGN:        Process 10.NumberIn=Process 10.NumberIn + 1:
                             Process 10.WIP=Process 10.WIP+1;
458$          STACK,         1:Save:NEXT(432$);

432$          QUEUE,         Process 10.Queue;
431$          SEIZE,         2,VA:
                             Resource 4_1,1:NEXT(430$);

430$          DELAY:         HoursToBaseTime(expo(10/receiptb1# c1,3)),,VA:NEXT(473$);

473$          ASSIGN:        Process 10.WaitTime=Process 10.WaitTime + Diff.WaitTime;
437$          TALLY:         Process 10.WaitTimePerEntity,Diff.WaitTime,1;
439$          TALLY:         Process 10.TotalTimePerEntity,Diff.StartTime,1;
463$          ASSIGN:        Process 10.VATime=Process 10.VATime + Diff.VATime;
464$          TALLY:         Process 10.VATimePerEntity,Diff.VATime,1;
429$          RELEASE:       Resource 4_1,1;
478$          STACK,         1:Destroy:NEXT(477$);

477$          ASSIGN:        Process 10.NumberOut=Process 10.NumberOut + 1:
                             Process 10.WIP=Process 10.WIP-1:NEXT(228$);


;
;
;     Model statements for module:  Assign 57
;
228$          ASSIGN:        producttype=2:NEXT(119$);


;
;
;     Model statements for module:  Decide 121
;
119$          BRANCH,        1:
                             If,producttype==1,118$,Yes:
                             If,producttype==2,120$,Yes:
                             Else,121$,Yes;
121$          COUNT:         receiptctruck,1:NEXT(112$);


;
;
;     Model statements for module:  Assign 78
;
112$          ASSIGN:        receiptqenter=tnow:NEXT(110$);

110$          QUEUE,         receiptdockqueue;
100$          SEIZE,         2,Other:
                             SELECT(Docks,LRC,index),1:NEXT(101$);


;
;
;     Model statements for module:  Decide 116
;
101$          BRANCH,        1:
                             If,docks(index)==dock1,482$,Yes:
                             Else,483$,Yes;
482$          ASSIGN:        Decide 116.NumberOut True=Decide 116.NumberOut True + 1:NEXT(113$);

483$          ASSIGN:        Decide 116.NumberOut False=Decide 116.NumberOut False + 1:NEXT(169$);

113$          TALLY:         time in receiptq at d1,tnow-receiptqenter,1:NEXT(0$);


;
;
;     Model statements for module:  Assign 2
;
0$            ASSIGN:        truckcap=8:
                             dockno=1:NEXT(1$);

1$            DUPLICATE:     truckcap-1,68$:NEXT(68$);


;
;
;     Model statements for module:  Process 1
;
68$           ASSIGN:        Unloading from dock1.NumberIn=Unloading from dock1.NumberIn + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP+1;
513$          STACK,         1:Save:NEXT(487$);

487$          QUEUE,         Unloading from dock1.Queue;
486$          SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(485$);

485$          DELAY:         SecondsToBaseTime(UNIF(62,83,61)),,VA:NEXT(528$);

528$          ASSIGN:        Unloading from dock1.WaitTime=Unloading from dock1.WaitTime + Diff.WaitTime;
492$          TALLY:         Unloading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
494$          TALLY:         Unloading from dock1.TotalTimePerEntity,Diff.StartTime,1;
518$          ASSIGN:        Unloading from dock1.VATime=Unloading from dock1.VATime + Diff.VATime;
519$          TALLY:         Unloading from dock1.VATimePerEntity,Diff.VATime,1;
484$          RELEASE:       SELECT(TransSet4,LAST),1;
533$          STACK,         1:Destroy:NEXT(532$);

532$          ASSIGN:        Unloading from dock1.NumberOut=Unloading from dock1.NumberOut + 1:
                             Unloading from dock1.WIP=Unloading from dock1.WIP-1:NEXT(171$);


;
;
;     Model statements for module:  Assign 110
;
171$          ASSIGN:        beginning time for putaway from d1=tnow:NEXT(104$);

104$          ASSIGN:        product3stock=(producttype==3)*(product3stock+1)+(producttype<>3)*(product3stock+0):
                             product2stock=(producttype==2)*(product2stock+1)+(producttype<>2)*(product2stock+0):
                             product1stock=(producttype==1)*(product1stock+1)+(producttype<>1)*(product1stock+0);
106$          WRITE,         stockr:
                             totalstock,
                             tnow:NEXT(2$);


;
;
;     Model statements for module:  Assign 3
;
2$            ASSIGN:        i=1:NEXT(3$);


;
;
;     Model statements for module:  Assign 4
;
3$            ASSIGN:        replaced=0:NEXT(4$);

4$            WHILE:         (replaced==0):NEXT(7$);


;
;
;     Model statements for module:  Decide 3
;
7$            BRANCH,        1:
                             If,(LocationA(i,1) == 0) ||  ( (producttype  ==  LocationA (i,2)) && (LocationA(i,1) < Capacity) ),
                             535$,Yes:
                             Else,536$,Yes;
535$          ASSIGN:        Decide 3.NumberOut True=Decide 3.NumberOut True + 1:NEXT(6$);

536$          ASSIGN:        Decide 3.NumberOut False=Decide 3.NumberOut False + 1:NEXT(9$);

6$            ASSIGN:        LocationA(i,1)=LocationA(i,1)+1:
                             LocationA(i,2)=producttype:NEXT(10$);


;
;
;     Model statements for module:  Assign 11
;
10$           ASSIGN:        Locationtype=1:NEXT(56$);


;
;
;     Model statements for module:  Decide 45
;
56$           BRANCH,        1:
                             If,dockno==1,537$,Yes:
                             Else,538$,Yes;
537$          ASSIGN:        Decide 45.NumberOut True=Decide 45.NumberOut True + 1:NEXT(194$);

538$          ASSIGN:        Decide 45.NumberOut False=Decide 45.NumberOut False + 1:NEXT(193$);


;
;
;     Model statements for module:  Assign 183
;
194$          ASSIGN:        width1=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance1=20+i*1+width1:NEXT(12$);


;
;
;     Model statements for module:  Assign 13
;
12$           ASSIGN:        replaced=1:NEXT(13$);

13$           ENDWHILE:NEXT(53$);


;
;
;     Model statements for module:  Decide 44
;
53$           BRANCH,        1:
                             If,dockno==1,539$,Yes:
                             Else,540$,Yes;
539$          ASSIGN:        Decide 44.NumberOut True=Decide 44.NumberOut True + 1:NEXT(15$);

540$          ASSIGN:        Decide 44.NumberOut False=Decide 44.NumberOut False + 1:NEXT(54$);


;
;
;     Model statements for module:  Seize 2
;
15$           QUEUE,         Seizing a forklift from forklift set at receiving ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet1,CYC, trans_no1),1:NEXT(542$);

542$          DELAY:         0.0,,VA:NEXT(213$);


;
;
;     Model statements for module:  Decide 229
;
213$          BRANCH,        1:
                             If,stock exceeded<>1,543$,Yes:
                             Else,544$,Yes;
543$          ASSIGN:        Decide 229.NumberOut True=Decide 229.NumberOut True + 1:NEXT(17$);

544$          ASSIGN:        Decide 229.NumberOut False=Decide 229.NumberOut False + 1:NEXT(214$);


;
;
;     Model statements for module:  Delay 1
;
17$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance1)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance3)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance5)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance7)+NORM(0,7.3))*2)),,
                             Other:NEXT(18$);

18$           RELEASE:       Member(TransSet1, Trans_No1),1;
173$          TALLY:         time for putaway from d1,tnow-beginning time for putaway from d1,1;
144$          ASSIGN:        #unloaded1=#unloaded1+1:NEXT(19$);


;
;
;     Model statements for module:  Decide 6
;
19$           BRANCH,        1:
                             If,#unloaded1==truckcap,545$,Yes:
                             Else,546$,Yes;
545$          ASSIGN:        Decide 6.NumberOut True=Decide 6.NumberOut True + 1:NEXT(20$);

546$          ASSIGN:        Decide 6.NumberOut False=Decide 6.NumberOut False + 1:NEXT(14$);


;
;
;     Model statements for module:  Release 1
;
20$           RELEASE:       dock1,1:NEXT(123$);

123$          TALLY:         time in system from d1,tnow-receiptqenter,1;
145$          ASSIGN:        #unloaded1=#unloaded1-#unloaded1:NEXT(14$);


;
;
;     Model statements for module:  Dispose 1
;
14$           ASSIGN:        Dispose 1.NumberOut=Dispose 1.NumberOut + 1;
547$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 14
;
214$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(18$);


;
;
;     Model statements for module:  Seize 15
;
54$           QUEUE,         Seizing a forklift from forklift set at receiving ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet2,CYC, trans_no2),1:NEXT(549$);

549$          DELAY:         0.0,,VA:NEXT(216$);


;
;
;     Model statements for module:  Decide 230
;
216$          BRANCH,        1:
                             If,stock exceeded<>1,550$,Yes:
                             Else,551$,Yes;
550$          ASSIGN:        Decide 230.NumberOut True=Decide 230.NumberOut True + 1:NEXT(57$);

551$          ASSIGN:        Decide 230.NumberOut False=Decide 230.NumberOut False + 1:NEXT(215$);


;
;
;     Model statements for module:  Delay 11
;
57$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance2)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance4)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance6)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance8)+NORM(0,7.3))*2)),,
                             Other:NEXT(58$);

58$           RELEASE:       Member(TransSet2, Trans_No2),1;
174$          TALLY:         time for putaway from d2,tnow-beginning time for putaway from d2,1;
146$          ASSIGN:        #unloaded2=#unloaded2+1:NEXT(60$);


;
;
;     Model statements for module:  Decide 56
;
60$           BRANCH,        1:
                             If,#unloaded2==truckcap,552$,Yes:
                             Else,553$,Yes;
552$          ASSIGN:        Decide 56.NumberOut True=Decide 56.NumberOut True + 1:NEXT(61$);

553$          ASSIGN:        Decide 56.NumberOut False=Decide 56.NumberOut False + 1:NEXT(59$);


;
;
;     Model statements for module:  Release 15
;
61$           RELEASE:       dock2,1:NEXT(122$);

122$          TALLY:         time in system from d2,tnow-receiptqenter,1;
147$          ASSIGN:        #unloaded2=#unloaded2-#unloaded2:NEXT(59$);


;
;
;     Model statements for module:  Dispose 15
;
59$           ASSIGN:        Dispose 15.NumberOut=Dispose 15.NumberOut + 1;
554$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Delay 15
;
215$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(58$);


;
;
;     Model statements for module:  Assign 182
;
193$          ASSIGN:        width2=
                             (LocationA(i,1)==1)*4+(LocationA(i,1)==2)*3+(LocationA(i,1)==3)*2+(LocationA(i,1)==4)*1+(LocationA(i,1)==5)*0:
                             distance2=23+i*1+width2:NEXT(12$);


;
;
;     Model statements for module:  Decide 4
;
9$            BRANCH,        1:
                             If,
                             ((LocationB(i,1) == 0) ||  ( (producttype  ==  LocationB (i,2)) && (LocationB(i,1) < Capacity) )),
                             555$,Yes:
                             Else,556$,Yes;
555$          ASSIGN:        Decide 4.NumberOut True=Decide 4.NumberOut True + 1:NEXT(5$);

556$          ASSIGN:        Decide 4.NumberOut False=Decide 4.NumberOut False + 1:NEXT(70$);

5$            ASSIGN:        LocationB(i,1)=LocationB(i,1)+1:
                             LocationB(i,2)=producttype:NEXT(11$);


;
;
;     Model statements for module:  Assign 12
;
11$           ASSIGN:        Locationtype=2:NEXT(195$);


;
;
;     Model statements for module:  Decide 223
;
195$          BRANCH,        1:
                             If,dockno==1,557$,Yes:
                             Else,558$,Yes;
557$          ASSIGN:        Decide 223.NumberOut True=Decide 223.NumberOut True + 1:NEXT(196$);

558$          ASSIGN:        Decide 223.NumberOut False=Decide 223.NumberOut False + 1:NEXT(197$);


;
;
;     Model statements for module:  Assign 184
;
196$          ASSIGN:        width3=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance3=20+i*1+width3:NEXT(12$);


;
;
;     Model statements for module:  Assign 186
;
197$          ASSIGN:        width4=
                             (LocationB(i,1)==1)*4+(LocationB(i,1)==2)*3+(LocationB(i,1)==3)*2+(LocationB(i,1)==4)*1+(LocationB(i,1)==5)*0:
                             distance4=23+i*1+width4:NEXT(12$);


;
;
;     Model statements for module:  Decide 67
;
70$           BRANCH,        1:
                             If,((LocationC(i,1) == 0) ||  ( (producttype  ==  LocationC (i,2)) && (LocationC(i,1) < 8) )),559$,
                             Yes:
                             Else,560$,Yes;
559$          ASSIGN:        Decide 67.NumberOut True=Decide 67.NumberOut True + 1:NEXT(71$);

560$          ASSIGN:        Decide 67.NumberOut False=Decide 67.NumberOut False + 1:NEXT(89$);

71$           ASSIGN:        LocationC(i,1)=LocationC(i,1)+1:
                             LocationC(i,2)=producttype:NEXT(72$);


;
;
;     Model statements for module:  Assign 49
;
72$           ASSIGN:        Locationtype=3:NEXT(73$);


;
;
;     Model statements for module:  Decide 68
;
73$           BRANCH,        1:
                             If,dockno==1,561$,Yes:
                             Else,562$,Yes;
561$          ASSIGN:        Decide 68.NumberOut True=Decide 68.NumberOut True + 1:NEXT(74$);

562$          ASSIGN:        Decide 68.NumberOut False=Decide 68.NumberOut False + 1:NEXT(75$);


;
;
;     Model statements for module:  Assign 51
;
74$           ASSIGN:        width5=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance5=13+i*1+width5:NEXT(12$);


;
;
;     Model statements for module:  Assign 52
;
75$           ASSIGN:        width6=
                             (LocationC(i,1)==1)*7+(LocationC(i,1)==2)*6+(LocationC(i,1)==3)*5+(LocationC(i,1)==4)*4+(LocationC(i,1)==5)*3+(LocationC(i,1)==6)*2+(LocationC(i,1)==7)*1+(LocationC(i,1)==8)*0:
                             distance6=14+i*1+width6:NEXT(12$);


;
;
;     Model statements for module:  Decide 110
;
89$           BRANCH,        1:
                             If,((LocationD(i,1) == 0) ||  ( (producttype  ==  LocationD (i,2)) && (LocationD(i,1) < 8) )),563$,
                             Yes:
                             Else,564$,Yes;
563$          ASSIGN:        Decide 110.NumberOut True=Decide 110.NumberOut True + 1:NEXT(90$);

564$          ASSIGN:        Decide 110.NumberOut False=Decide 110.NumberOut False + 1:NEXT(8$);

90$           ASSIGN:        LocationD(i,1)=LocationD(i,1)+1:
                             LocationD(i,2)=producttype:NEXT(91$);


;
;
;     Model statements for module:  Assign 76
;
91$           ASSIGN:        Locationtype=4:NEXT(198$);


;
;
;     Model statements for module:  Decide 224
;
198$          BRANCH,        1:
                             If,dockno==1,565$,Yes:
                             Else,566$,Yes;
565$          ASSIGN:        Decide 224.NumberOut True=Decide 224.NumberOut True + 1:NEXT(199$);

566$          ASSIGN:        Decide 224.NumberOut False=Decide 224.NumberOut False + 1:NEXT(200$);


;
;
;     Model statements for module:  Assign 189
;
199$          ASSIGN:        width7=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance7=13+i*1+width7:NEXT(12$);


;
;
;     Model statements for module:  Assign 190
;
200$          ASSIGN:        width8=
                             (LocationD(i,1)==1)*7+(LocationD(i,1)==2)*6+(LocationD(i,1)==3)*5+(LocationD(i,1)==4)*4+(LocationD(i,1)==5)*3+(LocationD(i,1)==6)*2+(LocationD(i,1)==7)*1+(LocationD(i,1)==8)*0:
                             distance8=14+i*1+width8:NEXT(12$);


;
;
;     Model statements for module:  Assign 10
;
8$            ASSIGN:        i=i+1:NEXT(211$);


;
;
;     Model statements for module:  Decide 228
;
211$          BRANCH,        1:
                             If,i<=231,567$,Yes:
                             Else,568$,Yes;
567$          ASSIGN:        Decide 228.NumberOut True=Decide 228.NumberOut True + 1:NEXT(13$);

568$          ASSIGN:        Decide 228.NumberOut False=Decide 228.NumberOut False + 1:NEXT(212$);


;
;
;     Model statements for module:  Assign 196
;
212$          ASSIGN:        stock exceeded=1:NEXT(207$);


;
;
;     Model statements for module:  Decide 227
;
207$          BRANCH,        1:
                             If,producttype==1,208$,Yes:
                             If,producttype==2,209$,Yes:
                             Else,210$,Yes;
210$          ASSIGN:        stock3=stock3+1:NEXT(53$);

208$          ASSIGN:        stock1=stock1+1:NEXT(53$);

209$          ASSIGN:        stock2=stock2+1:NEXT(53$);

169$          TALLY:         time in receiptq at d2,tnow-receiptqenter,1:NEXT(21$);


;
;
;     Model statements for module:  Assign 15
;
21$           ASSIGN:        truckcap=8:
                             dockno=2:NEXT(22$);

22$           DUPLICATE:     truckcap-1,69$:NEXT(69$);


;
;
;     Model statements for module:  Process 2
;
69$           ASSIGN:        Unloading from dock2.NumberIn=Unloading from dock2.NumberIn + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP+1;
600$          STACK,         1:Save:NEXT(574$);

574$          QUEUE,         Unloading from dock2.Queue;
573$          SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(572$);

572$          DELAY:         SecondsToBaseTime(UNIF(62,83,62)),,VA:NEXT(615$);

615$          ASSIGN:        Unloading from dock2.WaitTime=Unloading from dock2.WaitTime + Diff.WaitTime;
579$          TALLY:         Unloading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
581$          TALLY:         Unloading from dock2.TotalTimePerEntity,Diff.StartTime,1;
605$          ASSIGN:        Unloading from dock2.VATime=Unloading from dock2.VATime + Diff.VATime;
606$          TALLY:         Unloading from dock2.VATimePerEntity,Diff.VATime,1;
571$          RELEASE:       SELECT(TransSet5,LAST),1;
620$          STACK,         1:Destroy:NEXT(619$);

619$          ASSIGN:        Unloading from dock2.NumberOut=Unloading from dock2.NumberOut + 1:
                             Unloading from dock2.WIP=Unloading from dock2.WIP-1:NEXT(172$);


;
;
;     Model statements for module:  Assign 111
;
172$          ASSIGN:        beginning time for putaway from d2=tnow:NEXT(104$);

118$          COUNT:         receiptatruck,1:NEXT(112$);

120$          COUNT:         receiptbtruck,1:NEXT(112$);


;
;
;     Model statements for module:  Dispose 16
;
232$          ASSIGN:        Dispose 16.NumberOut=Dispose 16.NumberOut + 1;
622$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 69
;
241$          ASSIGN:        receiptb2# c1=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,68)
                             :NEXT(245$);


;
;
;     Model statements for module:  Decide 100
;
245$          BRANCH,        1:
                             If,receiptb2# c1==0,232$,Yes:
                             If,receiptb2# c1==1,246$,Yes:
                             Else,247$,Yes;

;
;
;     Model statements for module:  Separate 6
;
247$          DUPLICATE,     100 - 50:
                             receiptb2# c1-1,627$,50:NEXT(626$);

626$          ASSIGN:        Separate 6.NumberOut Orig=Separate 6.NumberOut Orig + 1:NEXT(246$);

627$          ASSIGN:        Separate 6.NumberOut Dup=Separate 6.NumberOut Dup + 1:NEXT(246$);


;
;
;     Model statements for module:  Process 11
;
246$          ASSIGN:        Process 11.NumberIn=Process 11.NumberIn + 1:
                             Process 11.WIP=Process 11.WIP+1;
657$          STACK,         1:Save:NEXT(631$);

631$          QUEUE,         Process 11.Queue;
630$          SEIZE,         2,VA:
                             Resource 5,1:NEXT(629$);

629$          DELAY:         HoursToBaseTime(expo(14/receiptb2# c1,4)),,VA:NEXT(672$);

672$          ASSIGN:        Process 11.WaitTime=Process 11.WaitTime + Diff.WaitTime;
636$          TALLY:         Process 11.WaitTimePerEntity,Diff.WaitTime,1;
638$          TALLY:         Process 11.TotalTimePerEntity,Diff.StartTime,1;
662$          ASSIGN:        Process 11.VATime=Process 11.VATime + Diff.VATime;
663$          TALLY:         Process 11.VATimePerEntity,Diff.VATime,1;
628$          RELEASE:       Resource 5,1;
677$          STACK,         1:Destroy:NEXT(676$);

676$          ASSIGN:        Process 11.NumberOut=Process 11.NumberOut + 1:
                             Process 11.WIP=Process 11.WIP-1:NEXT(228$);


;
;
;     Model statements for module:  Create 5
;

679$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c1:MinutesToBaseTime(1440):NEXT(680$);

680$          ASSIGN:        Create for receiving c shift1 c1.NumberOut=Create for receiving c shift1 c1.NumberOut + 1
                             :NEXT(248$);


;
;
;     Model statements for module:  Decide 101
;
248$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),683$,Yes:
                             Else,684$,Yes;
683$          ASSIGN:        Decide 101.NumberOut True=Decide 101.NumberOut True + 1:NEXT(249$);

684$          ASSIGN:        Decide 101.NumberOut False=Decide 101.NumberOut False + 1:NEXT(250$);


;
;
;     Model statements for module:  Assign 70
;
249$          ASSIGN:        receiptc1# c1=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,69)
                             :NEXT(251$);


;
;
;     Model statements for module:  Decide 102
;
251$          BRANCH,        1:
                             If,receiptc1# c1==0,232$,Yes:
                             If,receiptc1# c1==1,252$,Yes:
                             Else,253$,Yes;

;
;
;     Model statements for module:  Separate 7
;
253$          DUPLICATE,     100 - 50:
                             receiptc1# c1-1,689$,50:NEXT(688$);

688$          ASSIGN:        Separate 7.NumberOut Orig=Separate 7.NumberOut Orig + 1:NEXT(252$);

689$          ASSIGN:        Separate 7.NumberOut Dup=Separate 7.NumberOut Dup + 1:NEXT(252$);


;
;
;     Model statements for module:  Process 12
;
252$          ASSIGN:        Process 12.NumberIn=Process 12.NumberIn + 1:
                             Process 12.WIP=Process 12.WIP+1;
719$          STACK,         1:Save:NEXT(693$);

693$          QUEUE,         Process 12.Queue;
692$          SEIZE,         2,VA:
                             Resource 6,1:NEXT(691$);

691$          DELAY:         HoursToBaseTime(expo(10/receiptc1# c1,5)),,VA:NEXT(734$);

734$          ASSIGN:        Process 12.WaitTime=Process 12.WaitTime + Diff.WaitTime;
698$          TALLY:         Process 12.WaitTimePerEntity,Diff.WaitTime,1;
700$          TALLY:         Process 12.TotalTimePerEntity,Diff.StartTime,1;
724$          ASSIGN:        Process 12.VATime=Process 12.VATime + Diff.VATime;
725$          TALLY:         Process 12.VATimePerEntity,Diff.VATime,1;
690$          RELEASE:       Resource 6,1;
739$          STACK,         1:Destroy:NEXT(738$);

738$          ASSIGN:        Process 12.NumberOut=Process 12.NumberOut + 1:
                             Process 12.WIP=Process 12.WIP-1:NEXT(229$);


;
;
;     Model statements for module:  Assign 58
;
229$          ASSIGN:        producttype=3:NEXT(119$);


;
;
;     Model statements for module:  Assign 71
;
250$          ASSIGN:        receiptc2# c1=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,70)
                             :NEXT(254$);


;
;
;     Model statements for module:  Decide 103
;
254$          BRANCH,        1:
                             If,receiptc2# c1==0,232$,Yes:
                             If,receiptc2# c1==1,255$,Yes:
                             Else,256$,Yes;

;
;
;     Model statements for module:  Separate 8
;
256$          DUPLICATE,     100 - 50:
                             receiptc2# c1-1,745$,50:NEXT(744$);

744$          ASSIGN:        Separate 8.NumberOut Orig=Separate 8.NumberOut Orig + 1:NEXT(255$);

745$          ASSIGN:        Separate 8.NumberOut Dup=Separate 8.NumberOut Dup + 1:NEXT(255$);


;
;
;     Model statements for module:  Process 13
;
255$          ASSIGN:        Process 13.NumberIn=Process 13.NumberIn + 1:
                             Process 13.WIP=Process 13.WIP+1;
775$          STACK,         1:Save:NEXT(749$);

749$          QUEUE,         Process 13.Queue;
748$          SEIZE,         2,VA:
                             Resource 7,1:NEXT(747$);

747$          DELAY:         HoursToBaseTime(expo(14/receiptc2# c1,6)),,VA:NEXT(790$);

790$          ASSIGN:        Process 13.WaitTime=Process 13.WaitTime + Diff.WaitTime;
754$          TALLY:         Process 13.WaitTimePerEntity,Diff.WaitTime,1;
756$          TALLY:         Process 13.TotalTimePerEntity,Diff.StartTime,1;
780$          ASSIGN:        Process 13.VATime=Process 13.VATime + Diff.VATime;
781$          TALLY:         Process 13.VATimePerEntity,Diff.VATime,1;
746$          RELEASE:       Resource 7,1;
795$          STACK,         1:Destroy:NEXT(794$);

794$          ASSIGN:        Process 13.NumberOut=Process 13.NumberOut + 1:
                             Process 13.WIP=Process 13.WIP-1:NEXT(229$);


;
;
;     Model statements for module:  Create 11
;

797$          CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c1:MinutesToBaseTime(1440):NEXT(798$);

798$          ASSIGN:        Create for receiving a shift2 c1.NumberOut=Create for receiving a shift2 c1.NumberOut + 1
                             :NEXT(235$);


;
;
;     Model statements for module:  Decide 93
;
235$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),801$,Yes:
                             Else,802$,Yes;
801$          ASSIGN:        Decide 93.NumberOut True=Decide 93.NumberOut True + 1:NEXT(230$);

802$          ASSIGN:        Decide 93.NumberOut False=Decide 93.NumberOut False + 1:NEXT(236$);


;
;
;     Model statements for module:  Assign 62
;
230$          ASSIGN:        receipta1# c1=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,65)
                             :NEXT(231$);


;
;
;     Model statements for module:  Decide 92
;
231$          BRANCH,        1:
                             If,receipta1# c1==0,232$,Yes:
                             If,receipta1# c1==1,233$,Yes:
                             Else,234$,Yes;

;
;
;     Model statements for module:  Separate 1
;
234$          DUPLICATE,     100 - 50:
                             receipta1# c1-1,807$,50:NEXT(806$);

806$          ASSIGN:        Separate 1.NumberOut Orig=Separate 1.NumberOut Orig + 1:NEXT(233$);

807$          ASSIGN:        Separate 1.NumberOut Dup=Separate 1.NumberOut Dup + 1:NEXT(233$);


;
;
;     Model statements for module:  Process 6
;
233$          ASSIGN:        Process 6.NumberIn=Process 6.NumberIn + 1:
                             Process 6.WIP=Process 6.WIP+1;
837$          STACK,         1:Save:NEXT(811$);

811$          QUEUE,         Process 6.Queue;
810$          SEIZE,         2,VA:
                             Resource 1,1:NEXT(809$);

809$          DELAY:         HoursToBaseTime(expo(10/receipta1# c1,1)),,VA:NEXT(852$);

852$          ASSIGN:        Process 6.WaitTime=Process 6.WaitTime + Diff.WaitTime;
816$          TALLY:         Process 6.WaitTimePerEntity,Diff.WaitTime,1;
818$          TALLY:         Process 6.TotalTimePerEntity,Diff.StartTime,1;
842$          ASSIGN:        Process 6.VATime=Process 6.VATime + Diff.VATime;
843$          TALLY:         Process 6.VATimePerEntity,Diff.VATime,1;
808$          RELEASE:       Resource 1,1;
857$          STACK,         1:Destroy:NEXT(856$);

856$          ASSIGN:        Process 6.NumberOut=Process 6.NumberOut + 1:
                             Process 6.WIP=Process 6.WIP-1:NEXT(227$);


;
;
;     Model statements for module:  Assign 1
;
227$          ASSIGN:        producttype=1:NEXT(119$);


;
;
;     Model statements for module:  Assign 65
;
236$          ASSIGN:        receipta2# c1=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,66)
                             :NEXT(237$);


;
;
;     Model statements for module:  Decide 94
;
237$          BRANCH,        1:
                             If,receipta2# c1==0,232$,Yes:
                             If,receipta2# c1==1,239$,Yes:
                             Else,238$,Yes;

;
;
;     Model statements for module:  Separate 2
;
238$          DUPLICATE,     100 - 50:
                             receipta2# c1-1,863$,50:NEXT(862$);

862$          ASSIGN:        Separate 2.NumberOut Orig=Separate 2.NumberOut Orig + 1:NEXT(239$);

863$          ASSIGN:        Separate 2.NumberOut Dup=Separate 2.NumberOut Dup + 1:NEXT(239$);


;
;
;     Model statements for module:  Process 8
;
239$          ASSIGN:        Process 8.NumberIn=Process 8.NumberIn + 1:
                             Process 8.WIP=Process 8.WIP+1;
893$          STACK,         1:Save:NEXT(867$);

867$          QUEUE,         Process 8.Queue;
866$          SEIZE,         2,VA:
                             Resource 2,1:NEXT(865$);

865$          DELAY:         HoursToBaseTime(expo(14/receipta2# c1,2)),,VA:NEXT(908$);

908$          ASSIGN:        Process 8.WaitTime=Process 8.WaitTime + Diff.WaitTime;
872$          TALLY:         Process 8.WaitTimePerEntity,Diff.WaitTime,1;
874$          TALLY:         Process 8.TotalTimePerEntity,Diff.StartTime,1;
898$          ASSIGN:        Process 8.VATime=Process 8.VATime + Diff.VATime;
899$          TALLY:         Process 8.VATimePerEntity,Diff.VATime,1;
864$          RELEASE:       Resource 2,1;
913$          STACK,         1:Destroy:NEXT(912$);

912$          ASSIGN:        Process 8.NumberOut=Process 8.NumberOut + 1:
                             Process 8.WIP=Process 8.WIP-1:NEXT(227$);


;
;
;     Model statements for module:  Create 16
;

915$          CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c1:MinutesToBaseTime(1440):NEXT(916$);

916$          ASSIGN:        Create for receiving b shift2 c1.NumberOut=Create for receiving b shift2 c1.NumberOut + 1
                             :NEXT(240$);


;
;
;     Model statements for module:  Create 17
;

919$          CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c1:MinutesToBaseTime(1440):NEXT(920$);

920$          ASSIGN:        Create for receiving c shift2 c1.NumberOut=Create for receiving c shift2 c1.NumberOut + 1
                             :NEXT(248$);


;
;
;     Model statements for module:  Create 24
;

923$          CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c2:MinutesToBaseTime(1440):NEXT(924$);

924$          ASSIGN:        Create for receiving b shift1 c2.NumberOut=Create for receiving b shift1 c2.NumberOut + 1
                             :NEXT(270$);


;
;
;     Model statements for module:  Decide 127
;
270$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),927$,Yes:
                             Else,928$,Yes;
927$          ASSIGN:        Decide 127.NumberOut True=Decide 127.NumberOut True + 1:NEXT(319$);

928$          ASSIGN:        Decide 127.NumberOut False=Decide 127.NumberOut False + 1:NEXT(271$);


;
;
;     Model statements for module:  Assign 199
;
319$          ASSIGN:        receiptb1# c2=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,73)
                             :NEXT(272$);


;
;
;     Model statements for module:  Decide 128
;
272$          BRANCH,        1:
                             If,receiptb1# c2==0,262$,Yes:
                             If,receiptb1# c2==1,273$,Yes:
                             Else,274$,Yes;

;
;
;     Model statements for module:  Separate 15
;
274$          DUPLICATE,     100 - 50:
                             receiptb1# c2-1,933$,50:NEXT(932$);

932$          ASSIGN:        Separate 15.NumberOut Orig=Separate 15.NumberOut Orig + 1:NEXT(273$);

933$          ASSIGN:        Separate 15.NumberOut Dup=Separate 15.NumberOut Dup + 1:NEXT(273$);


;
;
;     Model statements for module:  Process 20
;
273$          ASSIGN:        Process 20.NumberIn=Process 20.NumberIn + 1:
                             Process 20.WIP=Process 20.WIP+1;
963$          STACK,         1:Save:NEXT(937$);

937$          QUEUE,         Process 20.Queue;
936$          SEIZE,         2,VA:
                             Resource 14,1:NEXT(935$);

935$          DELAY:         HoursToBaseTime(expo(10/receiptb1# c2,9)),,VA:NEXT(978$);

978$          ASSIGN:        Process 20.WaitTime=Process 20.WaitTime + Diff.WaitTime;
942$          TALLY:         Process 20.WaitTimePerEntity,Diff.WaitTime,1;
944$          TALLY:         Process 20.TotalTimePerEntity,Diff.StartTime,1;
968$          ASSIGN:        Process 20.VATime=Process 20.VATime + Diff.VATime;
969$          TALLY:         Process 20.VATimePerEntity,Diff.VATime,1;
934$          RELEASE:       Resource 14,1;
983$          STACK,         1:Destroy:NEXT(982$);

982$          ASSIGN:        Process 20.NumberOut=Process 20.NumberOut + 1:
                             Process 20.WIP=Process 20.WIP-1:NEXT(258$);


;
;
;     Model statements for module:  Assign 83
;
258$          ASSIGN:        producttype=2:NEXT(119$);


;
;
;     Model statements for module:  Dispose 22
;
262$          ASSIGN:        Dispose 22.NumberOut=Dispose 22.NumberOut + 1;
985$          DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 88
;
271$          ASSIGN:        receiptb2# c2=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,74)
                             :NEXT(275$);


;
;
;     Model statements for module:  Decide 129
;
275$          BRANCH,        1:
                             If,receiptb2# c2==0,262$,Yes:
                             If,receiptb2# c2==1,276$,Yes:
                             Else,277$,Yes;

;
;
;     Model statements for module:  Separate 16
;
277$          DUPLICATE,     100 - 50:
                             receiptb2# c2-1,990$,50:NEXT(989$);

989$          ASSIGN:        Separate 16.NumberOut Orig=Separate 16.NumberOut Orig + 1:NEXT(276$);

990$          ASSIGN:        Separate 16.NumberOut Dup=Separate 16.NumberOut Dup + 1:NEXT(276$);


;
;
;     Model statements for module:  Process 21
;
276$          ASSIGN:        Process 21.NumberIn=Process 21.NumberIn + 1:
                             Process 21.WIP=Process 21.WIP+1;
1020$         STACK,         1:Save:NEXT(994$);

994$          QUEUE,         Process 21.Queue;
993$          SEIZE,         2,VA:
                             Resource 15,1:NEXT(992$);

992$          DELAY:         HoursToBaseTime(expo(14/receiptb2# c2,10)),,VA:NEXT(1035$);

1035$         ASSIGN:        Process 21.WaitTime=Process 21.WaitTime + Diff.WaitTime;
999$          TALLY:         Process 21.WaitTimePerEntity,Diff.WaitTime,1;
1001$         TALLY:         Process 21.TotalTimePerEntity,Diff.StartTime,1;
1025$         ASSIGN:        Process 21.VATime=Process 21.VATime + Diff.VATime;
1026$         TALLY:         Process 21.VATimePerEntity,Diff.VATime,1;
991$          RELEASE:       Resource 15,1;
1040$         STACK,         1:Destroy:NEXT(1039$);

1039$         ASSIGN:        Process 21.NumberOut=Process 21.NumberOut + 1:
                             Process 21.WIP=Process 21.WIP-1:NEXT(258$);


;
;
;     Model statements for module:  Create 25
;

1042$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c2:MinutesToBaseTime(1440):NEXT(1043$);

1043$         ASSIGN:        Create for receiving c shift1 c2.NumberOut=Create for receiving c shift1 c2.NumberOut + 1
                             :NEXT(278$);


;
;
;     Model statements for module:  Decide 130
;
278$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1046$,Yes:
                             Else,1047$,Yes;
1046$         ASSIGN:        Decide 130.NumberOut True=Decide 130.NumberOut True + 1:NEXT(279$);

1047$         ASSIGN:        Decide 130.NumberOut False=Decide 130.NumberOut False + 1:NEXT(280$);


;
;
;     Model statements for module:  Assign 89
;
279$          ASSIGN:        receiptc1# c2=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,75)
                             :NEXT(281$);


;
;
;     Model statements for module:  Decide 131
;
281$          BRANCH,        1:
                             If,receiptc1# c2==0,262$,Yes:
                             If,receiptc1# c2==1,282$,Yes:
                             Else,283$,Yes;

;
;
;     Model statements for module:  Separate 17
;
283$          DUPLICATE,     100 - 50:
                             receiptc1# c2-1,1052$,50:NEXT(1051$);

1051$         ASSIGN:        Separate 17.NumberOut Orig=Separate 17.NumberOut Orig + 1:NEXT(282$);

1052$         ASSIGN:        Separate 17.NumberOut Dup=Separate 17.NumberOut Dup + 1:NEXT(282$);


;
;
;     Model statements for module:  Process 22
;
282$          ASSIGN:        Process 22.NumberIn=Process 22.NumberIn + 1:
                             Process 22.WIP=Process 22.WIP+1;
1082$         STACK,         1:Save:NEXT(1056$);

1056$         QUEUE,         Process 22.Queue;
1055$         SEIZE,         2,VA:
                             Resource 16,1:NEXT(1054$);

1054$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c2,11)),,VA:NEXT(1097$);

1097$         ASSIGN:        Process 22.WaitTime=Process 22.WaitTime + Diff.WaitTime;
1061$         TALLY:         Process 22.WaitTimePerEntity,Diff.WaitTime,1;
1063$         TALLY:         Process 22.TotalTimePerEntity,Diff.StartTime,1;
1087$         ASSIGN:        Process 22.VATime=Process 22.VATime + Diff.VATime;
1088$         TALLY:         Process 22.VATimePerEntity,Diff.VATime,1;
1053$         RELEASE:       Resource 16,1;
1102$         STACK,         1:Destroy:NEXT(1101$);

1101$         ASSIGN:        Process 22.NumberOut=Process 22.NumberOut + 1:
                             Process 22.WIP=Process 22.WIP-1:NEXT(259$);


;
;
;     Model statements for module:  Assign 84
;
259$          ASSIGN:        producttype=3:NEXT(119$);


;
;
;     Model statements for module:  Assign 90
;
280$          ASSIGN:        receiptc2# c2=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,76)
                             :NEXT(284$);


;
;
;     Model statements for module:  Decide 132
;
284$          BRANCH,        1:
                             If,receiptc2# c2==0,262$,Yes:
                             If,receiptc2# c2==1,285$,Yes:
                             Else,286$,Yes;

;
;
;     Model statements for module:  Separate 18
;
286$          DUPLICATE,     100 - 50:
                             receiptc2# c2-1,1108$,50:NEXT(1107$);

1107$         ASSIGN:        Separate 18.NumberOut Orig=Separate 18.NumberOut Orig + 1:NEXT(285$);

1108$         ASSIGN:        Separate 18.NumberOut Dup=Separate 18.NumberOut Dup + 1:NEXT(285$);


;
;
;     Model statements for module:  Process 23
;
285$          ASSIGN:        Process 23.NumberIn=Process 23.NumberIn + 1:
                             Process 23.WIP=Process 23.WIP+1;
1138$         STACK,         1:Save:NEXT(1112$);

1112$         QUEUE,         Process 23.Queue;
1111$         SEIZE,         2,VA:
                             Resource 17,1:NEXT(1110$);

1110$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c2,12)),,VA:NEXT(1153$);

1153$         ASSIGN:        Process 23.WaitTime=Process 23.WaitTime + Diff.WaitTime;
1117$         TALLY:         Process 23.WaitTimePerEntity,Diff.WaitTime,1;
1119$         TALLY:         Process 23.TotalTimePerEntity,Diff.StartTime,1;
1143$         ASSIGN:        Process 23.VATime=Process 23.VATime + Diff.VATime;
1144$         TALLY:         Process 23.VATimePerEntity,Diff.VATime,1;
1109$         RELEASE:       Resource 17,1;
1158$         STACK,         1:Destroy:NEXT(1157$);

1157$         ASSIGN:        Process 23.NumberOut=Process 23.NumberOut + 1:
                             Process 23.WIP=Process 23.WIP-1:NEXT(259$);


;
;
;     Model statements for module:  Create 27
;

1160$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c2:MinutesToBaseTime(1440):NEXT(1161$);

1161$         ASSIGN:        Create for receiving a shift2 c2.NumberOut=Create for receiving a shift2 c2.NumberOut + 1
                             :NEXT(265$);


;
;
;     Model statements for module:  Decide 125
;
265$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1164$,Yes:
                             Else,1165$,Yes;
1164$         ASSIGN:        Decide 125.NumberOut True=Decide 125.NumberOut True + 1:NEXT(260$);

1165$         ASSIGN:        Decide 125.NumberOut False=Decide 125.NumberOut False + 1:NEXT(266$);


;
;
;     Model statements for module:  Assign 85
;
260$          ASSIGN:        receipta1# c2=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,71)
                             :NEXT(261$);


;
;
;     Model statements for module:  Decide 124
;
261$          BRANCH,        1:
                             If,receipta1# c2==0,262$,Yes:
                             If,receipta1# c2==1,263$,Yes:
                             Else,264$,Yes;

;
;
;     Model statements for module:  Separate 13
;
264$          DUPLICATE,     100 - 50:
                             receipta1# c2-1,1170$,50:NEXT(1169$);

1169$         ASSIGN:        Separate 13.NumberOut Orig=Separate 13.NumberOut Orig + 1:NEXT(263$);

1170$         ASSIGN:        Separate 13.NumberOut Dup=Separate 13.NumberOut Dup + 1:NEXT(263$);


;
;
;     Model statements for module:  Process 18
;
263$          ASSIGN:        Process 18.NumberIn=Process 18.NumberIn + 1:
                             Process 18.WIP=Process 18.WIP+1;
1200$         STACK,         1:Save:NEXT(1174$);

1174$         QUEUE,         Process 18.Queue;
1173$         SEIZE,         2,VA:
                             Resource 12,1:NEXT(1172$);

1172$         DELAY:         HoursToBaseTime(expo(10/receipta1# c2,7)),,VA:NEXT(1215$);

1215$         ASSIGN:        Process 18.WaitTime=Process 18.WaitTime + Diff.WaitTime;
1179$         TALLY:         Process 18.WaitTimePerEntity,Diff.WaitTime,1;
1181$         TALLY:         Process 18.TotalTimePerEntity,Diff.StartTime,1;
1205$         ASSIGN:        Process 18.VATime=Process 18.VATime + Diff.VATime;
1206$         TALLY:         Process 18.VATimePerEntity,Diff.VATime,1;
1171$         RELEASE:       Resource 12,1;
1220$         STACK,         1:Destroy:NEXT(1219$);

1219$         ASSIGN:        Process 18.NumberOut=Process 18.NumberOut + 1:
                             Process 18.WIP=Process 18.WIP-1:NEXT(257$);


;
;
;     Model statements for module:  Assign 82
;
257$          ASSIGN:        producttype=1:NEXT(119$);


;
;
;     Model statements for module:  Assign 86
;
266$          ASSIGN:        receipta2# c2=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,72)
                             :NEXT(267$);


;
;
;     Model statements for module:  Decide 126
;
267$          BRANCH,        1:
                             If,receipta2# c2==0,262$,Yes:
                             If,receipta2# c2==1,269$,Yes:
                             Else,268$,Yes;

;
;
;     Model statements for module:  Separate 14
;
268$          DUPLICATE,     100 - 50:
                             receipta2# c2-1,1226$,50:NEXT(1225$);

1225$         ASSIGN:        Separate 14.NumberOut Orig=Separate 14.NumberOut Orig + 1:NEXT(269$);

1226$         ASSIGN:        Separate 14.NumberOut Dup=Separate 14.NumberOut Dup + 1:NEXT(269$);


;
;
;     Model statements for module:  Process 19
;
269$          ASSIGN:        Process 19.NumberIn=Process 19.NumberIn + 1:
                             Process 19.WIP=Process 19.WIP+1;
1256$         STACK,         1:Save:NEXT(1230$);

1230$         QUEUE,         Process 19.Queue;
1229$         SEIZE,         2,VA:
                             Resource 13,1:NEXT(1228$);

1228$         DELAY:         HoursToBaseTime(expo(14/receipta2# c2,8)),,VA:NEXT(1271$);

1271$         ASSIGN:        Process 19.WaitTime=Process 19.WaitTime + Diff.WaitTime;
1235$         TALLY:         Process 19.WaitTimePerEntity,Diff.WaitTime,1;
1237$         TALLY:         Process 19.TotalTimePerEntity,Diff.StartTime,1;
1261$         ASSIGN:        Process 19.VATime=Process 19.VATime + Diff.VATime;
1262$         TALLY:         Process 19.VATimePerEntity,Diff.VATime,1;
1227$         RELEASE:       Resource 13,1;
1276$         STACK,         1:Destroy:NEXT(1275$);

1275$         ASSIGN:        Process 19.NumberOut=Process 19.NumberOut + 1:
                             Process 19.WIP=Process 19.WIP-1:NEXT(257$);


;
;
;     Model statements for module:  Create 28
;

1278$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c2:MinutesToBaseTime(1440):NEXT(1279$);

1279$         ASSIGN:        Create for receiving b shift2 c2.NumberOut=Create for receiving b shift2 c2.NumberOut + 1
                             :NEXT(270$);


;
;
;     Model statements for module:  Create 29
;

1282$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c2:MinutesToBaseTime(1440):NEXT(1283$);

1283$         ASSIGN:        Create for receiving c shift2 c2.NumberOut=Create for receiving c shift2 c2.NumberOut + 1
                             :NEXT(278$);


;
;
;     Model statements for module:  Create 45
;

1286$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rb1rec# c3:MinutesToBaseTime(1440):NEXT(1287$);

1287$         ASSIGN:        Create for receiving b shift1 c3.NumberOut=Create for receiving b shift1 c3.NumberOut + 1
                             :NEXT(300$);


;
;
;     Model statements for module:  Decide 157
;
300$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1290$,Yes:
                             Else,1291$,Yes;
1290$         ASSIGN:        Decide 157.NumberOut True=Decide 157.NumberOut True + 1:NEXT(301$);

1291$         ASSIGN:        Decide 157.NumberOut False=Decide 157.NumberOut False + 1:NEXT(302$);


;
;
;     Model statements for module:  Assign 117
;
301$          ASSIGN:        receiptb1# c3=
                             disc(0.924,0,0.929,1,0.940,2,0.946,6,0.951,8,0.962,9,0.973,15,0.978,16,0.984,17,0.989,18,0.995,19,1,21,79)
                             :NEXT(303$);


;
;
;     Model statements for module:  Decide 158
;
303$          BRANCH,        1:
                             If,receiptb1# c3==0,292$,Yes:
                             If,receiptb1# c3==1,304$,Yes:
                             Else,305$,Yes;

;
;
;     Model statements for module:  Separate 33
;
305$          DUPLICATE,     100 - 50:
                             receiptb1# c3-1,1296$,50:NEXT(1295$);

1295$         ASSIGN:        Separate 33.NumberOut Orig=Separate 33.NumberOut Orig + 1:NEXT(304$);

1296$         ASSIGN:        Separate 33.NumberOut Dup=Separate 33.NumberOut Dup + 1:NEXT(304$);


;
;
;     Model statements for module:  Process 38
;
304$          ASSIGN:        Process 38.NumberIn=Process 38.NumberIn + 1:
                             Process 38.WIP=Process 38.WIP+1;
1326$         STACK,         1:Save:NEXT(1300$);

1300$         QUEUE,         Process 38.Queue;
1299$         SEIZE,         2,VA:
                             Resource 26,1:NEXT(1298$);

1298$         DELAY:         HoursToBaseTime(expo(10/receiptb1# c3,15)),,VA:NEXT(1341$);

1341$         ASSIGN:        Process 38.WaitTime=Process 38.WaitTime + Diff.WaitTime;
1305$         TALLY:         Process 38.WaitTimePerEntity,Diff.WaitTime,1;
1307$         TALLY:         Process 38.TotalTimePerEntity,Diff.StartTime,1;
1331$         ASSIGN:        Process 38.VATime=Process 38.VATime + Diff.VATime;
1332$         TALLY:         Process 38.VATimePerEntity,Diff.VATime,1;
1297$         RELEASE:       Resource 26,1;
1346$         STACK,         1:Destroy:NEXT(1345$);

1345$         ASSIGN:        Process 38.NumberOut=Process 38.NumberOut + 1:
                             Process 38.WIP=Process 38.WIP-1:NEXT(288$);


;
;
;     Model statements for module:  Assign 113
;
288$          ASSIGN:        producttype=2:NEXT(119$);


;
;
;     Model statements for module:  Dispose 25
;
292$          ASSIGN:        Dispose 25.NumberOut=Dispose 25.NumberOut + 1;
1348$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 118
;
302$          ASSIGN:        receiptb2# c3=
                             disc(0.929,0,0.935,1,0.946,7,0.957,8,0.967,12,0.973,15,0.978,17,0.984,19,0.989,21,0.995,27,1,28,80)
                             :NEXT(306$);


;
;
;     Model statements for module:  Decide 159
;
306$          BRANCH,        1:
                             If,receiptb2# c3==0,292$,Yes:
                             If,receiptb2# c3==1,307$,Yes:
                             Else,308$,Yes;

;
;
;     Model statements for module:  Separate 34
;
308$          DUPLICATE,     100 - 50:
                             receiptb2# c3-1,1353$,50:NEXT(1352$);

1352$         ASSIGN:        Separate 34.NumberOut Orig=Separate 34.NumberOut Orig + 1:NEXT(307$);

1353$         ASSIGN:        Separate 34.NumberOut Dup=Separate 34.NumberOut Dup + 1:NEXT(307$);


;
;
;     Model statements for module:  Process 39
;
307$          ASSIGN:        Process 39.NumberIn=Process 39.NumberIn + 1:
                             Process 39.WIP=Process 39.WIP+1;
1383$         STACK,         1:Save:NEXT(1357$);

1357$         QUEUE,         Process 39.Queue;
1356$         SEIZE,         2,VA:
                             Resource 27,1:NEXT(1355$);

1355$         DELAY:         HoursToBaseTime(expo(14/receiptb2# c3,16)),,VA:NEXT(1398$);

1398$         ASSIGN:        Process 39.WaitTime=Process 39.WaitTime + Diff.WaitTime;
1362$         TALLY:         Process 39.WaitTimePerEntity,Diff.WaitTime,1;
1364$         TALLY:         Process 39.TotalTimePerEntity,Diff.StartTime,1;
1388$         ASSIGN:        Process 39.VATime=Process 39.VATime + Diff.VATime;
1389$         TALLY:         Process 39.VATimePerEntity,Diff.VATime,1;
1354$         RELEASE:       Resource 27,1;
1403$         STACK,         1:Destroy:NEXT(1402$);

1402$         ASSIGN:        Process 39.NumberOut=Process 39.NumberOut + 1:
                             Process 39.WIP=Process 39.WIP-1:NEXT(288$);


;
;
;     Model statements for module:  Create 46
;

1405$         CREATE,        1,MinutesToBaseTime(0.0001),Entity rc1rec# c3:MinutesToBaseTime(1440):NEXT(1406$);

1406$         ASSIGN:        Create for receiving c shift1 c3.NumberOut=Create for receiving c shift1 c3.NumberOut + 1
                             :NEXT(309$);


;
;
;     Model statements for module:  Decide 160
;
309$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1409$,Yes:
                             Else,1410$,Yes;
1409$         ASSIGN:        Decide 160.NumberOut True=Decide 160.NumberOut True + 1:NEXT(310$);

1410$         ASSIGN:        Decide 160.NumberOut False=Decide 160.NumberOut False + 1:NEXT(311$);


;
;
;     Model statements for module:  Assign 119
;
310$          ASSIGN:        receiptc1# c3=disc(0.848,0,0.859,1,0.880,2,0.902,3,0.935,4,0.962,5,0.973,6,0.989,7,0.995,8,1,10,81)
                             :NEXT(312$);


;
;
;     Model statements for module:  Decide 161
;
312$          BRANCH,        1:
                             If,receiptc1# c3==0,292$,Yes:
                             If,receiptc1# c3==1,313$,Yes:
                             Else,314$,Yes;

;
;
;     Model statements for module:  Separate 35
;
314$          DUPLICATE,     100 - 50:
                             receiptc1# c3-1,1415$,50:NEXT(1414$);

1414$         ASSIGN:        Separate 35.NumberOut Orig=Separate 35.NumberOut Orig + 1:NEXT(313$);

1415$         ASSIGN:        Separate 35.NumberOut Dup=Separate 35.NumberOut Dup + 1:NEXT(313$);


;
;
;     Model statements for module:  Process 40
;
313$          ASSIGN:        Process 40.NumberIn=Process 40.NumberIn + 1:
                             Process 40.WIP=Process 40.WIP+1;
1445$         STACK,         1:Save:NEXT(1419$);

1419$         QUEUE,         Process 40.Queue;
1418$         SEIZE,         2,VA:
                             Resource 28,1:NEXT(1417$);

1417$         DELAY:         HoursToBaseTime(expo(10/receiptc1# c3,17)),,VA:NEXT(1460$);

1460$         ASSIGN:        Process 40.WaitTime=Process 40.WaitTime + Diff.WaitTime;
1424$         TALLY:         Process 40.WaitTimePerEntity,Diff.WaitTime,1;
1426$         TALLY:         Process 40.TotalTimePerEntity,Diff.StartTime,1;
1450$         ASSIGN:        Process 40.VATime=Process 40.VATime + Diff.VATime;
1451$         TALLY:         Process 40.VATimePerEntity,Diff.VATime,1;
1416$         RELEASE:       Resource 28,1;
1465$         STACK,         1:Destroy:NEXT(1464$);

1464$         ASSIGN:        Process 40.NumberOut=Process 40.NumberOut + 1:
                             Process 40.WIP=Process 40.WIP-1:NEXT(289$);


;
;
;     Model statements for module:  Assign 114
;
289$          ASSIGN:        producttype=3:NEXT(119$);


;
;
;     Model statements for module:  Assign 120
;
311$          ASSIGN:        receiptc2# c3=disc(0.848,0,0.864,1,0.875,2,0.913,3,0.946,4,0.973,5,0.989,6,0.995,8,1,10,82)
                             :NEXT(315$);


;
;
;     Model statements for module:  Decide 162
;
315$          BRANCH,        1:
                             If,receiptc2# c3==0,292$,Yes:
                             If,receiptc2# c3==1,316$,Yes:
                             Else,317$,Yes;

;
;
;     Model statements for module:  Separate 36
;
317$          DUPLICATE,     100 - 50:
                             receiptc2# c3-1,1471$,50:NEXT(1470$);

1470$         ASSIGN:        Separate 36.NumberOut Orig=Separate 36.NumberOut Orig + 1:NEXT(316$);

1471$         ASSIGN:        Separate 36.NumberOut Dup=Separate 36.NumberOut Dup + 1:NEXT(316$);


;
;
;     Model statements for module:  Process 41
;
316$          ASSIGN:        Process 41.NumberIn=Process 41.NumberIn + 1:
                             Process 41.WIP=Process 41.WIP+1;
1501$         STACK,         1:Save:NEXT(1475$);

1475$         QUEUE,         Process 41.Queue;
1474$         SEIZE,         2,VA:
                             Resource 29,1:NEXT(1473$);

1473$         DELAY:         HoursToBaseTime(expo(14/receiptc2# c3,18)),,VA:NEXT(1516$);

1516$         ASSIGN:        Process 41.WaitTime=Process 41.WaitTime + Diff.WaitTime;
1480$         TALLY:         Process 41.WaitTimePerEntity,Diff.WaitTime,1;
1482$         TALLY:         Process 41.TotalTimePerEntity,Diff.StartTime,1;
1506$         ASSIGN:        Process 41.VATime=Process 41.VATime + Diff.VATime;
1507$         TALLY:         Process 41.VATimePerEntity,Diff.VATime,1;
1472$         RELEASE:       Resource 29,1;
1521$         STACK,         1:Destroy:NEXT(1520$);

1520$         ASSIGN:        Process 41.NumberOut=Process 41.NumberOut + 1:
                             Process 41.WIP=Process 41.WIP-1:NEXT(289$);


;
;
;     Model statements for module:  Create 48
;

1523$         CREATE,        1,MinutesToBaseTime(600.0001),Entity ra2rec# c3:MinutesToBaseTime(1440):NEXT(1524$);

1524$         ASSIGN:        Create for receiving a shift2 c3.NumberOut=Create for receiving a shift2 c3.NumberOut + 1
                             :NEXT(295$);


;
;
;     Model statements for module:  Decide 155
;
295$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1527$,Yes:
                             Else,1528$,Yes;
1527$         ASSIGN:        Decide 155.NumberOut True=Decide 155.NumberOut True + 1:NEXT(290$);

1528$         ASSIGN:        Decide 155.NumberOut False=Decide 155.NumberOut False + 1:NEXT(296$);


;
;
;     Model statements for module:  Assign 115
;
290$          ASSIGN:        receipta1# c3=
                             disc(0.772,0,0.777,2,0.788,4,0.810,5,0.821,6,0.832,7,0.870,8,0.886,9,0.891,10,0.908,11,0.924,12,0.935,13,0.946,14,0.951,16,0.962,17,0.973,18,0.978,22,0.984,23,0.995,27,1,32,77)
                             :NEXT(291$);


;
;
;     Model statements for module:  Decide 154
;
291$          BRANCH,        1:
                             If,receipta1# c3==0,292$,Yes:
                             If,receipta1# c3==1,293$,Yes:
                             Else,294$,Yes;

;
;
;     Model statements for module:  Separate 31
;
294$          DUPLICATE,     100 - 50:
                             receipta1# c3-1,1533$,50:NEXT(1532$);

1532$         ASSIGN:        Separate 31.NumberOut Orig=Separate 31.NumberOut Orig + 1:NEXT(293$);

1533$         ASSIGN:        Separate 31.NumberOut Dup=Separate 31.NumberOut Dup + 1:NEXT(293$);


;
;
;     Model statements for module:  Process 36
;
293$          ASSIGN:        Process 36.NumberIn=Process 36.NumberIn + 1:
                             Process 36.WIP=Process 36.WIP+1;
1563$         STACK,         1:Save:NEXT(1537$);

1537$         QUEUE,         Process 36.Queue;
1536$         SEIZE,         2,VA:
                             Resource 24,1:NEXT(1535$);

1535$         DELAY:         HoursToBaseTime(expo(10/receipta1# c3,13)),,VA:NEXT(1578$);

1578$         ASSIGN:        Process 36.WaitTime=Process 36.WaitTime + Diff.WaitTime;
1542$         TALLY:         Process 36.WaitTimePerEntity,Diff.WaitTime,1;
1544$         TALLY:         Process 36.TotalTimePerEntity,Diff.StartTime,1;
1568$         ASSIGN:        Process 36.VATime=Process 36.VATime + Diff.VATime;
1569$         TALLY:         Process 36.VATimePerEntity,Diff.VATime,1;
1534$         RELEASE:       Resource 24,1;
1583$         STACK,         1:Destroy:NEXT(1582$);

1582$         ASSIGN:        Process 36.NumberOut=Process 36.NumberOut + 1:
                             Process 36.WIP=Process 36.WIP-1:NEXT(287$);


;
;
;     Model statements for module:  Assign 112
;
287$          ASSIGN:        producttype=1:NEXT(119$);


;
;
;     Model statements for module:  Assign 116
;
296$          ASSIGN:        receipta2# c3=
                             disc(0.810,0,0.821,1,0.832,2,0.848,4,0.853,5,0.864,6,0.880,7,0.886,8,0.891,9,0.902,10,0.913,11,0.918,12,0.924,13,0.929,14,0.940,15,0.946,16,0.962,18,0.973,20,0.978,23,0.984,26,0.989,28,0.995,29,1,36,78)
                             :NEXT(297$);


;
;
;     Model statements for module:  Decide 156
;
297$          BRANCH,        1:
                             If,receipta2# c3==0,292$,Yes:
                             If,receipta2# c3==1,299$,Yes:
                             Else,298$,Yes;

;
;
;     Model statements for module:  Separate 32
;
298$          DUPLICATE,     100 - 50:
                             receipta2# c3-1,1589$,50:NEXT(1588$);

1588$         ASSIGN:        Separate 32.NumberOut Orig=Separate 32.NumberOut Orig + 1:NEXT(299$);

1589$         ASSIGN:        Separate 32.NumberOut Dup=Separate 32.NumberOut Dup + 1:NEXT(299$);


;
;
;     Model statements for module:  Process 37
;
299$          ASSIGN:        Process 37.NumberIn=Process 37.NumberIn + 1:
                             Process 37.WIP=Process 37.WIP+1;
1619$         STACK,         1:Save:NEXT(1593$);

1593$         QUEUE,         Process 37.Queue;
1592$         SEIZE,         2,VA:
                             Resource 25,1:NEXT(1591$);

1591$         DELAY:         HoursToBaseTime(expo(14/receipta2# c3,14)),,VA:NEXT(1634$);

1634$         ASSIGN:        Process 37.WaitTime=Process 37.WaitTime + Diff.WaitTime;
1598$         TALLY:         Process 37.WaitTimePerEntity,Diff.WaitTime,1;
1600$         TALLY:         Process 37.TotalTimePerEntity,Diff.StartTime,1;
1624$         ASSIGN:        Process 37.VATime=Process 37.VATime + Diff.VATime;
1625$         TALLY:         Process 37.VATimePerEntity,Diff.VATime,1;
1590$         RELEASE:       Resource 25,1;
1639$         STACK,         1:Destroy:NEXT(1638$);

1638$         ASSIGN:        Process 37.NumberOut=Process 37.NumberOut + 1:
                             Process 37.WIP=Process 37.WIP-1:NEXT(287$);


;
;
;     Model statements for module:  Create 49
;

1641$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rb2rec# c3:MinutesToBaseTime(1440):NEXT(1642$);

1642$         ASSIGN:        Create for receiving b shift2 c3.NumberOut=Create for receiving b shift2 c3.NumberOut + 1
                             :NEXT(300$);


;
;
;     Model statements for module:  Create 50
;

1645$         CREATE,        1,MinutesToBaseTime(600.0001),Entity rc2rec# c3:MinutesToBaseTime(1440):NEXT(1646$);

1646$         ASSIGN:        Create for receiving c shift2 c3.NumberOut=Create for receiving c shift2 c3.NumberOut + 1
                             :NEXT(309$);


;
;
;     Model statements for module:  Create 99
;

1649$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c2:MinutesToBaseTime(1440):NEXT(1650$);

1650$         ASSIGN:        Create for receiving a shift1 c2.NumberOut=Create for receiving a shift1 c2.NumberOut + 1
                             :NEXT(265$);


;
;
;     Model statements for module:  Create 100
;

1653$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c1:MinutesToBaseTime(1440):NEXT(1654$);

1654$         ASSIGN:        Create for receiving a shift1 c1.NumberOut=Create for receiving a shift1 c1.NumberOut + 1
                             :NEXT(235$);


;
;
;     Model statements for module:  Create 103
;

1657$         CREATE,        1,MinutesToBaseTime(0.0001),Entity ra1rec# c3:MinutesToBaseTime(1440):NEXT(1658$);

1658$         ASSIGN:        Create for receiving a shift1 c3.NumberOut=Create for receiving a shift1 c3.NumberOut + 1
                             :NEXT(295$);


;
;
;     Model statements for module:  Create 6
;

1661$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c1:MinutesToBaseTime(1440):NEXT(1662$);

1662$         ASSIGN:        Create for shipment b shift1 c1.NumberOut=Create for shipment b shift1 c1.NumberOut + 1:NEXT(333$);


;
;
;     Model statements for module:  Decide 104
;
333$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1665$,Yes:
                             Else,1666$,Yes;
1665$         ASSIGN:        Decide 104.NumberOut True=Decide 104.NumberOut True + 1:NEXT(334$);

1666$         ASSIGN:        Decide 104.NumberOut False=Decide 104.NumberOut False + 1:NEXT(335$);


;
;
;     Model statements for module:  Assign 72
;
334$          ASSIGN:        departureb1# c1=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,97):NEXT(336$);


;
;
;     Model statements for module:  Decide 105
;
336$          BRANCH,        1:
                             If,departureb1# c1==0,327$,Yes:
                             If,departureb1# c1==1,337$,Yes:
                             Else,338$,Yes;

;
;
;     Model statements for module:  Separate 9
;
338$          DUPLICATE,     100 - 50:
                             departureb1# c1-1,1671$,50:NEXT(1670$);

1670$         ASSIGN:        Separate 9.NumberOut Orig=Separate 9.NumberOut Orig + 1:NEXT(337$);

1671$         ASSIGN:        Separate 9.NumberOut Dup=Separate 9.NumberOut Dup + 1:NEXT(337$);


;
;
;     Model statements for module:  Process 14
;
337$          ASSIGN:        Process 14.NumberIn=Process 14.NumberIn + 1:
                             Process 14.WIP=Process 14.WIP+1;
1701$         STACK,         1:Save:NEXT(1675$);

1675$         QUEUE,         Process 14.Queue;
1674$         SEIZE,         2,VA:
                             Resource 8,1:NEXT(1673$);

1673$         DELAY:         HoursToBaseTime(expo(10/departureb1# c1,33)),,VA:NEXT(1716$);

1716$         ASSIGN:        Process 14.WaitTime=Process 14.WaitTime + Diff.WaitTime;
1680$         TALLY:         Process 14.WaitTimePerEntity,Diff.WaitTime,1;
1682$         TALLY:         Process 14.TotalTimePerEntity,Diff.StartTime,1;
1706$         ASSIGN:        Process 14.VATime=Process 14.VATime + Diff.VATime;
1707$         TALLY:         Process 14.VATimePerEntity,Diff.VATime,1;
1672$         RELEASE:       Resource 8,1;
1721$         STACK,         1:Destroy:NEXT(1720$);

1720$         ASSIGN:        Process 14.NumberOut=Process 14.NumberOut + 1:
                             Process 14.WIP=Process 14.WIP-1:NEXT(321$);


;
;
;     Model statements for module:  Assign 60
;
321$          ASSIGN:        type=2:NEXT(97$);


;
;
;     Model statements for module:  Decide 115
;
97$           BRANCH,        1:
                             If,type==1,107$,Yes:
                             If,type==2,108$,Yes:
                             Else,109$,Yes;

;
;
;     Model statements for module:  Decide 120
;
109$          BRANCH,        1:
                             If,product3stock>=safety stock,1725$,Yes:
                             Else,1726$,Yes;
1725$         ASSIGN:        Decide 120.NumberOut True=Decide 120.NumberOut True + 1:NEXT(154$);

1726$         ASSIGN:        Decide 120.NumberOut False=Decide 120.NumberOut False + 1:NEXT(99$);

154$          COUNT:         dispatchctruck,1:NEXT(23$);


;
;
;     Model statements for module:  Assign 23
;
23$           ASSIGN:        ordersize=8:
                             shipmentqenter=tnow:NEXT(67$);

67$           ASSIGN:        product2stock=(type==2)*(product2stock-8)+(type<>2)*(product2stock-0):
                             product3stock=(type==3)*(product3stock-8)+(type<>3)*(product3stock-0):
                             product1stock=(type==1)*(product1stock-8)+(type<>1)*(product1stock-0);
105$          WRITE,         stock:
                             totalstock,
                             tnow;
111$          QUEUE,         shipmentdockqueue;
102$          SEIZE,         1,Other:
                             SELECT(S_docks,LRC,s_index),1:NEXT(103$);


;
;
;     Model statements for module:  Decide 117
;
103$          BRANCH,        1:
                             If,s_docks(s_index)==dock1,1727$,Yes:
                             Else,1728$,Yes;
1727$         ASSIGN:        Decide 117.NumberOut True=Decide 117.NumberOut True + 1:NEXT(114$);

1728$         ASSIGN:        Decide 117.NumberOut False=Decide 117.NumberOut False + 1:NEXT(170$);

114$          TALLY:         time in shipmentq at d1,tnow-shipmentqenter,1:NEXT(65$);


;
;
;     Model statements for module:  Assign 47
;
65$           ASSIGN:        dock_no=1:
                             leave the dock1 queue=tnow:NEXT(25$);

25$           DUPLICATE:     ordersize-1,24$:NEXT(24$);


;
;
;     Model statements for module:  Assign 24
;
24$           ASSIGN:        picked=0:
                             k=1:
                             totalstock=product1stock+product2stock+product3stock:
                             totalexceedingstock=stock1+stock2+stock3:NEXT(26$);

26$           WHILE:         (picked==0):NEXT(27$);


;
;
;     Model statements for module:  Decide 17
;
27$           BRANCH,        1:
                             If,( LocationA(k,1) <> 0  )  &&  ( type == LocationA(k,2) ),1729$,Yes:
                             Else,1730$,Yes;
1729$         ASSIGN:        Decide 17.NumberOut True=Decide 17.NumberOut True + 1:NEXT(28$);

1730$         ASSIGN:        Decide 17.NumberOut False=Decide 17.NumberOut False + 1:NEXT(32$);

28$           ASSIGN:        LocationA(k,1)=LocationA(k,1)-1:NEXT(29$);


;
;
;     Model statements for module:  Assign 27
;
29$           ASSIGN:        picked=1:
                             Locationtype=1:NEXT(30$);


;
;
;     Model statements for module:  Decide 18
;
30$           BRANCH,        1:
                             If,LocationA(k,1)==0,1731$,Yes:
                             Else,1732$,Yes;
1731$         ASSIGN:        Decide 18.NumberOut True=Decide 18.NumberOut True + 1:NEXT(31$);

1732$         ASSIGN:        Decide 18.NumberOut False=Decide 18.NumberOut False + 1:NEXT(62$);

31$           ASSIGN:        LocationA(k,2)=0:NEXT(62$);


;
;
;     Model statements for module:  Decide 57
;
62$           BRANCH,        1:
                             If,dock_no==1,1733$,Yes:
                             Else,1734$,Yes;
1733$         ASSIGN:        Decide 57.NumberOut True=Decide 57.NumberOut True + 1:NEXT(63$);

1734$         ASSIGN:        Decide 57.NumberOut False=Decide 57.NumberOut False + 1:NEXT(64$);


;
;
;     Model statements for module:  Assign 43
;
63$           ASSIGN:        width9=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance9=20+k*1+width9:NEXT(37$);

37$           ENDWHILE:NEXT(41$);


;
;
;     Model statements for module:  Decide 22
;
41$           BRANCH,        1:
                             If,dock_no==1,1735$,Yes:
                             Else,1736$,Yes;
1735$         ASSIGN:        Decide 22.NumberOut True=Decide 22.NumberOut True + 1:NEXT(39$);

1736$         ASSIGN:        Decide 22.NumberOut False=Decide 22.NumberOut False + 1:NEXT(49$);


;
;
;     Model statements for module:  Seize 9
;
39$           QUEUE,         Seizing a forklift from forklift set at shipment ramp1.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet3,CYC, trans_no3),1:NEXT(1738$);

1738$         DELAY:         0.0,,VA:NEXT(223$);


;
;
;     Model statements for module:  Decide 233
;
223$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1739$,Yes:
                             Else,1740$,Yes;
1739$         ASSIGN:        Decide 233.NumberOut True=Decide 233.NumberOut True + 1:NEXT(42$);

1740$         ASSIGN:        Decide 233.NumberOut False=Decide 233.NumberOut False + 1:NEXT(224$);


;
;
;     Model statements for module:  Delay 5
;
42$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance9)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance11)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance13)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance15)+NORM(0,7.3))*2)),,
                             Other:NEXT(86$);

86$           RELEASE:       Member(TransSet3, trans_no3),1;
180$          ASSIGN:        #product from d1=#product from d1+1:NEXT(128$);


;
;
;     Model statements for module:  Decide 123
;
128$          BRANCH,        1:
                             If,#product from d1==8,1741$,Yes:
                             Else,1742$,Yes;
1741$         ASSIGN:        Decide 123.NumberOut True=Decide 123.NumberOut True + 1:NEXT(158$);

1742$         ASSIGN:        Decide 123.NumberOut False=Decide 123.NumberOut False + 1:NEXT(188$);

158$          TALLY:         time for pickup to d1,tnow-leave the dock1 queue,1;
181$          ASSIGN:        #product from d1=#product from d1-#product from d1:NEXT(85$);


;
;
;     Model statements for module:  Process 5
;
85$           ASSIGN:        Loading from dock1.NumberIn=Loading from dock1.NumberIn + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP+1;
1772$         STACK,         1:Save:NEXT(1746$);

1746$         QUEUE,         Loading from dock1.Queue;
1745$         SEIZE,         1,VA:
                             SELECT(TransSet4,SNB, ),1:NEXT(1744$);

1744$         DELAY:         SecondsToBaseTime(UNIF(62,83,63)),,VA:NEXT(1787$);

1787$         ASSIGN:        Loading from dock1.WaitTime=Loading from dock1.WaitTime + Diff.WaitTime;
1751$         TALLY:         Loading from dock1.WaitTimePerEntity,Diff.WaitTime,1;
1753$         TALLY:         Loading from dock1.TotalTimePerEntity,Diff.StartTime,1;
1777$         ASSIGN:        Loading from dock1.VATime=Loading from dock1.VATime + Diff.VATime;
1778$         TALLY:         Loading from dock1.VATimePerEntity,Diff.VATime,1;
1743$         RELEASE:       SELECT(TransSet4,LAST),1;
1792$         STACK,         1:Destroy:NEXT(1791$);

1791$         ASSIGN:        Loading from dock1.NumberOut=Loading from dock1.NumberOut + 1:
                             Loading from dock1.WIP=Loading from dock1.WIP-1:NEXT(148$);

148$          ASSIGN:        #loaded1=#loaded1+1:NEXT(45$);


;
;
;     Model statements for module:  Decide 38
;
45$           BRANCH,        1:
                             If,#loaded1==ordersize,1794$,Yes:
                             Else,1795$,Yes;
1794$         ASSIGN:        Decide 38.NumberOut True=Decide 38.NumberOut True + 1:NEXT(43$);

1795$         ASSIGN:        Decide 38.NumberOut False=Decide 38.NumberOut False + 1:NEXT(44$);


;
;
;     Model statements for module:  Release 13
;
43$           RELEASE:       dock1,1:NEXT(149$);

149$          ASSIGN:        #loaded1=#loaded1-#loaded1;
160$          TALLY:         time in system from d1 for shipment,tnow-shipmentqenter,1;
165$          COUNT:         # of trucks that are in system  more than 60 minutes from d1,(tnow-shipmentqenter)>60;
175$          COUNT:         # of trucks that are in system  more than 45 minutes from d1,(tnow-shipmentqenter)>45;
166$          COUNT:         #of trucks that are from d1,1;
178$          TALLY:         time for loading at d1,tnow-starting time of loading at d1,1:NEXT(44$);


;
;
;     Model statements for module:  Dispose 13
;
44$           ASSIGN:        Dispose 13.NumberOut=Dispose 13.NumberOut + 1;
1796$         DISPOSE:       Yes;

188$          ASSIGN:        #product being loaded from d1=#product being loaded from d1+1:NEXT(190$);


;
;
;     Model statements for module:  Decide 219
;
190$          BRANCH,        1:
                             If,#product being loaded from d1==1,1797$,Yes:
                             Else,1798$,Yes;
1797$         ASSIGN:        Decide 219.NumberOut True=Decide 219.NumberOut True + 1:NEXT(189$);

1798$         ASSIGN:        Decide 219.NumberOut False=Decide 219.NumberOut False + 1:NEXT(191$);


;
;
;     Model statements for module:  Assign 177
;
189$          ASSIGN:        starting time of loading at d1=tnow:NEXT(85$);


;
;
;     Model statements for module:  Decide 220
;
191$          BRANCH,        1:
                             If,#product being loaded from d1==7,1799$,Yes:
                             Else,1800$,Yes;
1799$         ASSIGN:        Decide 220.NumberOut True=Decide 220.NumberOut True + 1:NEXT(192$);

1800$         ASSIGN:        Decide 220.NumberOut False=Decide 220.NumberOut False + 1:NEXT(85$);

192$          ASSIGN:        #product being loaded from d1=#product being loaded from d1-#product being loaded from d1:NEXT(85$);


;
;
;     Model statements for module:  Delay 17
;
224$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(86$);


;
;
;     Model statements for module:  Seize 12
;
49$           QUEUE,         Seizing a forklift from forklift set at shipment ramp2.Queue;
              SEIZE,         2,Other:
                             SELECT(TransSet6,CYC, trans_no6),1:NEXT(1802$);

1802$         DELAY:         0.0,,VA:NEXT(225$);


;
;
;     Model statements for module:  Decide 234
;
225$          BRANCH,        1:
                             If,departure from stock exceeded<>1,1803$,Yes:
                             Else,1804$,Yes;
1803$         ASSIGN:        Decide 234.NumberOut True=Decide 234.NumberOut True + 1:NEXT(51$);

1804$         ASSIGN:        Decide 234.NumberOut False=Decide 234.NumberOut False + 1:NEXT(226$);


;
;
;     Model statements for module:  Delay 8
;
51$           DELAY:         
                             SecondsToBaseTime((Locationtype==1)*((34.521+(0.915*distance10)+NORM(0,7.3))*2)+(Locationtype==2)*((34.521+(0.915*distance12)+NORM(0,7.3))*2)+(Locationtype==3)*((34.521+(0.915*distance14)+NORM(0,7.3))*2)+(Locationtype==4)*((34.521+(0.915*distance16)+NORM(0,7.3))*2)),,
                             Other:NEXT(52$);

52$           RELEASE:       Member(TransSet6, Trans_No6),1;
182$          ASSIGN:        #product from d2=#product from d2+1:NEXT(127$);


;
;
;     Model statements for module:  Decide 122
;
127$          BRANCH,        1:
                             If,#product from d2==8,1805$,Yes:
                             Else,1806$,Yes;
1805$         ASSIGN:        Decide 122.NumberOut True=Decide 122.NumberOut True + 1:NEXT(159$);

1806$         ASSIGN:        Decide 122.NumberOut False=Decide 122.NumberOut False + 1:NEXT(184$);

159$          TALLY:         time for pickup to d2,tnow-leave the dock2 queue,1;
183$          ASSIGN:        #product from d2=#product from d2-#product from d2:NEXT(76$);


;
;
;     Model statements for module:  Process 4
;
76$           ASSIGN:        Loading from dock2.NumberIn=Loading from dock2.NumberIn + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP+1;
1836$         STACK,         1:Save:NEXT(1810$);

1810$         QUEUE,         Loading from dock2.Queue;
1809$         SEIZE,         1,VA:
                             SELECT(TransSet5,SNB, ),1:NEXT(1808$);

1808$         DELAY:         SecondsToBaseTime(UNIF(62,83,64)),,VA:NEXT(1851$);

1851$         ASSIGN:        Loading from dock2.WaitTime=Loading from dock2.WaitTime + Diff.WaitTime;
1815$         TALLY:         Loading from dock2.WaitTimePerEntity,Diff.WaitTime,1;
1817$         TALLY:         Loading from dock2.TotalTimePerEntity,Diff.StartTime,1;
1841$         ASSIGN:        Loading from dock2.VATime=Loading from dock2.VATime + Diff.VATime;
1842$         TALLY:         Loading from dock2.VATimePerEntity,Diff.VATime,1;
1807$         RELEASE:       SELECT(TransSet5,LAST),1;
1856$         STACK,         1:Destroy:NEXT(1855$);

1855$         ASSIGN:        Loading from dock2.NumberOut=Loading from dock2.NumberOut + 1:
                             Loading from dock2.WIP=Loading from dock2.WIP-1:NEXT(150$);

150$          ASSIGN:        #loaded2=#loaded2+1:NEXT(46$);


;
;
;     Model statements for module:  Decide 39
;
46$           BRANCH,        1:
                             If,#loaded2==ordersize,1858$,Yes:
                             Else,1859$,Yes;
1858$         ASSIGN:        Decide 39.NumberOut True=Decide 39.NumberOut True + 1:NEXT(47$);

1859$         ASSIGN:        Decide 39.NumberOut False=Decide 39.NumberOut False + 1:NEXT(48$);


;
;
;     Model statements for module:  Release 14
;
47$           RELEASE:       dock2,1:NEXT(151$);

151$          ASSIGN:        #loaded2=#loaded2-#loaded2;
161$          TALLY:         time in system from d2 for shipment,tnow-shipmentqenter,1;
167$          COUNT:         # of trucks that are in system  more than 60 minutes from d2,(tnow-shipmentqenter)>60;
176$          COUNT:         # of trucks that are in system  more than 45 minutes from d2,(tnow-shipmentqenter)>45;
168$          COUNT:         #of trucks that are from d2,1;
179$          TALLY:         time for loading at d2,tnow-starting time of loading at d2,1:NEXT(48$);


;
;
;     Model statements for module:  Dispose 14
;
48$           ASSIGN:        Dispose 14.NumberOut=Dispose 14.NumberOut + 1;
1860$         DISPOSE:       Yes;

184$          ASSIGN:        #product being loaded from d2=#product being loaded from d2+1:NEXT(185$);


;
;
;     Model statements for module:  Decide 217
;
185$          BRANCH,        1:
                             If,#product being loaded from d2==1,1861$,Yes:
                             Else,1862$,Yes;
1861$         ASSIGN:        Decide 217.NumberOut True=Decide 217.NumberOut True + 1:NEXT(177$);

1862$         ASSIGN:        Decide 217.NumberOut False=Decide 217.NumberOut False + 1:NEXT(186$);


;
;
;     Model statements for module:  Assign 176
;
177$          ASSIGN:        starting time of loading at d2=tnow:NEXT(76$);


;
;
;     Model statements for module:  Decide 218
;
186$          BRANCH,        1:
                             If,#product being loaded from d2==7,1863$,Yes:
                             Else,1864$,Yes;
1863$         ASSIGN:        Decide 218.NumberOut True=Decide 218.NumberOut True + 1:NEXT(187$);

1864$         ASSIGN:        Decide 218.NumberOut False=Decide 218.NumberOut False + 1:NEXT(76$);

187$          ASSIGN:        #product being loaded from d2=#product being loaded from d2-#product being loaded from d2:NEXT(76$);


;
;
;     Model statements for module:  Delay 21
;
226$          DELAY:         SecondsToBaseTime(((34.521+(0.915*averagedistance)+Norm(0,7.3))*2)),,Other:NEXT(52$);


;
;
;     Model statements for module:  Assign 44
;
64$           ASSIGN:        width10=
                             (LocationA(k,1)==4)*0+(LocationA(k,1)==3)*1+(LocationA(k,1)==2)*2+(LocationA(k,1)==1)*3+(LocationA(k,1)==0)*4:
                             distance10=23+k*1+width10:NEXT(37$);


;
;
;     Model statements for module:  Decide 19
;
32$           BRANCH,        1:
                             If,( LocationB(k,1) <> 0 )  &&  ( type == LocationB(k,2) ),1865$,Yes:
                             Else,1866$,Yes;
1865$         ASSIGN:        Decide 19.NumberOut True=Decide 19.NumberOut True + 1:NEXT(33$);

1866$         ASSIGN:        Decide 19.NumberOut False=Decide 19.NumberOut False + 1:NEXT(77$);

33$           ASSIGN:        LocationB(k,1)=LocationB(k,1)-1:NEXT(34$);


;
;
;     Model statements for module:  Assign 30
;
34$           ASSIGN:        picked=1:
                             Locationtype=2:NEXT(35$);


;
;
;     Model statements for module:  Decide 21
;
35$           BRANCH,        1:
                             If,LocationB(k,1)==0,1867$,Yes:
                             Else,1868$,Yes;
1867$         ASSIGN:        Decide 21.NumberOut True=Decide 21.NumberOut True + 1:NEXT(36$);

1868$         ASSIGN:        Decide 21.NumberOut False=Decide 21.NumberOut False + 1:NEXT(201$);

36$           ASSIGN:        LocationB(k,2)=0:NEXT(201$);


;
;
;     Model statements for module:  Decide 225
;
201$          BRANCH,        1:
                             If,dock_no==1,1869$,Yes:
                             Else,1870$,Yes;
1869$         ASSIGN:        Decide 225.NumberOut True=Decide 225.NumberOut True + 1:NEXT(202$);

1870$         ASSIGN:        Decide 225.NumberOut False=Decide 225.NumberOut False + 1:NEXT(203$);


;
;
;     Model statements for module:  Assign 191
;
202$          ASSIGN:        width11=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance11=20+k*1+width11:NEXT(37$);


;
;
;     Model statements for module:  Assign 192
;
203$          ASSIGN:        width12=
                             (LocationB(k,1)==4)*0+(LocationB(k,1)==3)*1+(LocationB(k,1)==2)*2+(LocationB(k,1)==1)*3+(LocationB(k,1)==0)*4:
                             distance12=23+k*1+width12:NEXT(37$);


;
;
;     Model statements for module:  Decide 82
;
77$           BRANCH,        1:
                             If,( LocationC(k,1) <> 0 )  &&  ( type == LocationC(k,2) ),1871$,Yes:
                             Else,1872$,Yes;
1871$         ASSIGN:        Decide 82.NumberOut True=Decide 82.NumberOut True + 1:NEXT(78$);

1872$         ASSIGN:        Decide 82.NumberOut False=Decide 82.NumberOut False + 1:NEXT(92$);

78$           ASSIGN:        LocationC(k,1)=LocationC(k,1)-1:NEXT(79$);


;
;
;     Model statements for module:  Assign 53
;
79$           ASSIGN:        picked=1:
                             Locationtype=3:NEXT(80$);


;
;
;     Model statements for module:  Decide 83
;
80$           BRANCH,        1:
                             If,LocationC(k,1)==0,1873$,Yes:
                             Else,1874$,Yes;
1873$         ASSIGN:        Decide 83.NumberOut True=Decide 83.NumberOut True + 1:NEXT(81$);

1874$         ASSIGN:        Decide 83.NumberOut False=Decide 83.NumberOut False + 1:NEXT(82$);

81$           ASSIGN:        LocationC(k,2)=0:NEXT(82$);


;
;
;     Model statements for module:  Decide 84
;
82$           BRANCH,        1:
                             If,dock_no==1,1875$,Yes:
                             Else,1876$,Yes;
1875$         ASSIGN:        Decide 84.NumberOut True=Decide 84.NumberOut True + 1:NEXT(83$);

1876$         ASSIGN:        Decide 84.NumberOut False=Decide 84.NumberOut False + 1:NEXT(84$);


;
;
;     Model statements for module:  Assign 55
;
83$           ASSIGN:        width13=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance13=13+k*1+width13:NEXT(37$);


;
;
;     Model statements for module:  Assign 56
;
84$           ASSIGN:        width14=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance14=14+k*1+width14:NEXT(37$);


;
;
;     Model statements for module:  Decide 111
;
92$           BRANCH,        1:
                             If,( LocationD(k,1) <> 0 )  &&  ( type == LocationD(k,2) ),1877$,Yes:
                             Else,1878$,Yes;
1877$         ASSIGN:        Decide 111.NumberOut True=Decide 111.NumberOut True + 1:NEXT(93$);

1878$         ASSIGN:        Decide 111.NumberOut False=Decide 111.NumberOut False + 1:NEXT(38$);

93$           ASSIGN:        LocationD(k,1)=LocationD(k,1)-1:NEXT(94$);


;
;
;     Model statements for module:  Assign 77
;
94$           ASSIGN:        picked=1:
                             Locationtype=4:NEXT(95$);


;
;
;     Model statements for module:  Decide 112
;
95$           BRANCH,        1:
                             If,LocationD(k,1)==0,1879$,Yes:
                             Else,1880$,Yes;
1879$         ASSIGN:        Decide 112.NumberOut True=Decide 112.NumberOut True + 1:NEXT(96$);

1880$         ASSIGN:        Decide 112.NumberOut False=Decide 112.NumberOut False + 1:NEXT(204$);

96$           ASSIGN:        LocationD(k,2)=0:NEXT(204$);


;
;
;     Model statements for module:  Decide 226
;
204$          BRANCH,        1:
                             If,dock_no==1,1881$,Yes:
                             Else,1882$,Yes;
1881$         ASSIGN:        Decide 226.NumberOut True=Decide 226.NumberOut True + 1:NEXT(205$);

1882$         ASSIGN:        Decide 226.NumberOut False=Decide 226.NumberOut False + 1:NEXT(206$);


;
;
;     Model statements for module:  Assign 193
;
205$          ASSIGN:        width15=
                             (LocationD(k,1)==7)*0+(LocationD(k,1)==6)*1+(LocationD(k,1)==5)*2+(LocationD(k,1)==4)*3+(LocationD(k,1)==3)*4+(LocationD(k,1)==2)*5+(LocationD(k,1)==1)*6+(LocationD(k,1)==0)*7:
                             distance15=13+k*1+width15:NEXT(37$);


;
;
;     Model statements for module:  Assign 194
;
206$          ASSIGN:        width16=
                             (LocationC(k,1)==7)*0+(LocationC(k,1)==6)*1+(LocationC(k,1)==5)*2+(LocationC(k,1)==4)*3+(LocationC(k,1)==3)*4+(LocationC(k,1)==2)*5+(LocationC(k,1)==1)*6+(LocationC(k,1)==0)*7:
                             distance16=14+k*1+width16:NEXT(37$);


;
;
;     Model statements for module:  Assign 32
;
38$           ASSIGN:        k=k+1:NEXT(217$);


;
;
;     Model statements for module:  Decide 231
;
217$          BRANCH,        1:
                             If,k<=231,1883$,Yes:
                             Else,1884$,Yes;
1883$         ASSIGN:        Decide 231.NumberOut True=Decide 231.NumberOut True + 1:NEXT(37$);

1884$         ASSIGN:        Decide 231.NumberOut False=Decide 231.NumberOut False + 1:NEXT(222$);


;
;
;     Model statements for module:  Assign 197
;
222$          ASSIGN:        departure from stock exceeded=1:NEXT(218$);


;
;
;     Model statements for module:  Decide 232
;
218$          BRANCH,        1:
                             If,type==1,219$,Yes:
                             If,type==2,220$,Yes:
                             Else,221$,Yes;
221$          ASSIGN:        stock3=stock3-1:NEXT(41$);

219$          ASSIGN:        stock1=stock1-1:NEXT(41$);

220$          ASSIGN:        stock2=stock2-1:NEXT(41$);

170$          TALLY:         time in shipmentq at d2,tnow-shipmentqenter,1:NEXT(66$);


;
;
;     Model statements for module:  Assign 48
;
66$           ASSIGN:        dock_no=2:
                             leave the dock2 queue=tnow:NEXT(25$);


;
;
;     Model statements for module:  Record 32
;
99$           COUNT:         #runaway,1:NEXT(98$);


;
;
;     Model statements for module:  Dispose 21
;
98$           ASSIGN:        Dispose 21.NumberOut=Dispose 21.NumberOut + 1;
1887$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Decide 118
;
107$          BRANCH,        1:
                             If,product1stock>=safety stock,1888$,Yes:
                             Else,1889$,Yes;
1888$         ASSIGN:        Decide 118.NumberOut True=Decide 118.NumberOut True + 1:NEXT(152$);

1889$         ASSIGN:        Decide 118.NumberOut False=Decide 118.NumberOut False + 1:NEXT(99$);

152$          COUNT:         dispatchatruck,1:NEXT(23$);


;
;
;     Model statements for module:  Decide 119
;
108$          BRANCH,        1:
                             If,product2stock>=safety stock,1890$,Yes:
                             Else,1891$,Yes;
1890$         ASSIGN:        Decide 119.NumberOut True=Decide 119.NumberOut True + 1:NEXT(153$);

1891$         ASSIGN:        Decide 119.NumberOut False=Decide 119.NumberOut False + 1:NEXT(99$);

153$          COUNT:         dispatchbtruck,1:NEXT(23$);


;
;
;     Model statements for module:  Dispose 20
;
327$          ASSIGN:        Dispose 20.NumberOut=Dispose 20.NumberOut + 1;
1892$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 73
;
335$          ASSIGN:        departureb2# c1=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,98)
                             :NEXT(339$);


;
;
;     Model statements for module:  Decide 106
;
339$          BRANCH,        1:
                             If,departureb2# c1==0,327$,Yes:
                             If,departureb2# c1==1,340$,Yes:
                             Else,341$,Yes;

;
;
;     Model statements for module:  Separate 10
;
341$          DUPLICATE,     100 - 50:
                             departureb2# c1-1,1897$,50:NEXT(1896$);

1896$         ASSIGN:        Separate 10.NumberOut Orig=Separate 10.NumberOut Orig + 1:NEXT(340$);

1897$         ASSIGN:        Separate 10.NumberOut Dup=Separate 10.NumberOut Dup + 1:NEXT(340$);


;
;
;     Model statements for module:  Process 15
;
340$          ASSIGN:        Process 15.NumberIn=Process 15.NumberIn + 1:
                             Process 15.WIP=Process 15.WIP+1;
1927$         STACK,         1:Save:NEXT(1901$);

1901$         QUEUE,         Process 15.Queue;
1900$         SEIZE,         2,VA:
                             Resource 9,1:NEXT(1899$);

1899$         DELAY:         HoursToBaseTime(expo(14/departureb2# c1,34)),,VA:NEXT(1942$);

1942$         ASSIGN:        Process 15.WaitTime=Process 15.WaitTime + Diff.WaitTime;
1906$         TALLY:         Process 15.WaitTimePerEntity,Diff.WaitTime,1;
1908$         TALLY:         Process 15.TotalTimePerEntity,Diff.StartTime,1;
1932$         ASSIGN:        Process 15.VATime=Process 15.VATime + Diff.VATime;
1933$         TALLY:         Process 15.VATimePerEntity,Diff.VATime,1;
1898$         RELEASE:       Resource 9,1;
1947$         STACK,         1:Destroy:NEXT(1946$);

1946$         ASSIGN:        Process 15.NumberOut=Process 15.NumberOut + 1:
                             Process 15.WIP=Process 15.WIP-1:NEXT(321$);


;
;
;     Model statements for module:  Create 7
;

1949$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c1:MinutesToBaseTime(1440):NEXT(1950$);

1950$         ASSIGN:        Create for shipment c shift1 c1.NumberOut=Create for shipment c shift1 c1.NumberOut + 1:NEXT(342$);


;
;
;     Model statements for module:  Decide 107
;
342$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),1953$,Yes:
                             Else,1954$,Yes;
1953$         ASSIGN:        Decide 107.NumberOut True=Decide 107.NumberOut True + 1:NEXT(343$);

1954$         ASSIGN:        Decide 107.NumberOut False=Decide 107.NumberOut False + 1:NEXT(344$);


;
;
;     Model statements for module:  Assign 74
;
343$          ASSIGN:        departurec1# c1=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,99):NEXT(345$);


;
;
;     Model statements for module:  Decide 108
;
345$          BRANCH,        1:
                             If,departurec1# c1==0,327$,Yes:
                             If,departurec1# c1==1,346$,Yes:
                             Else,347$,Yes;

;
;
;     Model statements for module:  Separate 11
;
347$          DUPLICATE,     100 - 50:
                             departurec1# c1-1,1959$,50:NEXT(1958$);

1958$         ASSIGN:        Separate 11.NumberOut Orig=Separate 11.NumberOut Orig + 1:NEXT(346$);

1959$         ASSIGN:        Separate 11.NumberOut Dup=Separate 11.NumberOut Dup + 1:NEXT(346$);


;
;
;     Model statements for module:  Process 16
;
346$          ASSIGN:        Process 16.NumberIn=Process 16.NumberIn + 1:
                             Process 16.WIP=Process 16.WIP+1;
1989$         STACK,         1:Save:NEXT(1963$);

1963$         QUEUE,         Process 16.Queue;
1962$         SEIZE,         2,VA:
                             Resource 10,1:NEXT(1961$);

1961$         DELAY:         HoursToBaseTime(expo(10/departurec1# c1,35)),,VA:NEXT(2004$);

2004$         ASSIGN:        Process 16.WaitTime=Process 16.WaitTime + Diff.WaitTime;
1968$         TALLY:         Process 16.WaitTimePerEntity,Diff.WaitTime,1;
1970$         TALLY:         Process 16.TotalTimePerEntity,Diff.StartTime,1;
1994$         ASSIGN:        Process 16.VATime=Process 16.VATime + Diff.VATime;
1995$         TALLY:         Process 16.VATimePerEntity,Diff.VATime,1;
1960$         RELEASE:       Resource 10,1;
2009$         STACK,         1:Destroy:NEXT(2008$);

2008$         ASSIGN:        Process 16.NumberOut=Process 16.NumberOut + 1:
                             Process 16.WIP=Process 16.WIP-1:NEXT(322$);


;
;
;     Model statements for module:  Assign 61
;
322$          ASSIGN:        type=3:NEXT(97$);


;
;
;     Model statements for module:  Assign 75
;
344$          ASSIGN:        departurec2# c1=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,100):NEXT(348$);


;
;
;     Model statements for module:  Decide 109
;
348$          BRANCH,        1:
                             If,departurec2# c1==0,327$,Yes:
                             If,departurec2# c1==1,349$,Yes:
                             Else,350$,Yes;

;
;
;     Model statements for module:  Separate 12
;
350$          DUPLICATE,     100 - 50:
                             departurec2# c1-1,2015$,50:NEXT(2014$);

2014$         ASSIGN:        Separate 12.NumberOut Orig=Separate 12.NumberOut Orig + 1:NEXT(349$);

2015$         ASSIGN:        Separate 12.NumberOut Dup=Separate 12.NumberOut Dup + 1:NEXT(349$);


;
;
;     Model statements for module:  Process 17
;
349$          ASSIGN:        Process 17.NumberIn=Process 17.NumberIn + 1:
                             Process 17.WIP=Process 17.WIP+1;
2045$         STACK,         1:Save:NEXT(2019$);

2019$         QUEUE,         Process 17.Queue;
2018$         SEIZE,         2,VA:
                             Resource 11,1:NEXT(2017$);

2017$         DELAY:         HoursToBaseTime(expo(14/departurec2# c1,36)),,VA:NEXT(2060$);

2060$         ASSIGN:        Process 17.WaitTime=Process 17.WaitTime + Diff.WaitTime;
2024$         TALLY:         Process 17.WaitTimePerEntity,Diff.WaitTime,1;
2026$         TALLY:         Process 17.TotalTimePerEntity,Diff.StartTime,1;
2050$         ASSIGN:        Process 17.VATime=Process 17.VATime + Diff.VATime;
2051$         TALLY:         Process 17.VATimePerEntity,Diff.VATime,1;
2016$         RELEASE:       Resource 11,1;
2065$         STACK,         1:Destroy:NEXT(2064$);

2064$         ASSIGN:        Process 17.NumberOut=Process 17.NumberOut + 1:
                             Process 17.WIP=Process 17.WIP-1:NEXT(322$);


;
;
;     Model statements for module:  Create 15
;

2067$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c1:MinutesToBaseTime(1440):NEXT(2068$);

2068$         ASSIGN:        Create for shipmenta shift2 c1.NumberOut=Create for shipmenta shift2 c1.NumberOut + 1:NEXT(324$);


;
;
;     Model statements for module:  Decide 95
;
324$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2071$,Yes:
                             Else,2072$,Yes;
2071$         ASSIGN:        Decide 95.NumberOut True=Decide 95.NumberOut True + 1:NEXT(323$);

2072$         ASSIGN:        Decide 95.NumberOut False=Decide 95.NumberOut False + 1:NEXT(325$);


;
;
;     Model statements for module:  Assign 66
;
323$          ASSIGN:        departurea1# c1=disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,95)
                             :NEXT(326$);


;
;
;     Model statements for module:  Decide 96
;
326$          BRANCH,        1:
                             If,departurea1# c1==0,327$,Yes:
                             If,departurea1# c1==1,328$,Yes:
                             Else,329$,Yes;

;
;
;     Model statements for module:  Separate 3
;
329$          DUPLICATE,     100 - 50:
                             departurea1# c1-1,2077$,50:NEXT(2076$);

2076$         ASSIGN:        Separate 3.NumberOut Orig=Separate 3.NumberOut Orig + 1:NEXT(328$);

2077$         ASSIGN:        Separate 3.NumberOut Dup=Separate 3.NumberOut Dup + 1:NEXT(328$);


;
;
;     Model statements for module:  Process 7
;
328$          ASSIGN:        Process 7.NumberIn=Process 7.NumberIn + 1:
                             Process 7.WIP=Process 7.WIP+1;
2107$         STACK,         1:Save:NEXT(2081$);

2081$         QUEUE,         Process 7.Queue;
2080$         SEIZE,         2,VA:
                             Resource 3,1:NEXT(2079$);

2079$         DELAY:         HoursToBaseTime(expo(10/departurea1# c1,31)),,VA:NEXT(2122$);

2122$         ASSIGN:        Process 7.WaitTime=Process 7.WaitTime + Diff.WaitTime;
2086$         TALLY:         Process 7.WaitTimePerEntity,Diff.WaitTime,1;
2088$         TALLY:         Process 7.TotalTimePerEntity,Diff.StartTime,1;
2112$         ASSIGN:        Process 7.VATime=Process 7.VATime + Diff.VATime;
2113$         TALLY:         Process 7.VATimePerEntity,Diff.VATime,1;
2078$         RELEASE:       Resource 3,1;
2127$         STACK,         1:Destroy:NEXT(2126$);

2126$         ASSIGN:        Process 7.NumberOut=Process 7.NumberOut + 1:
                             Process 7.WIP=Process 7.WIP-1:NEXT(320$);


;
;
;     Model statements for module:  Assign 59
;
320$          ASSIGN:        type=1:NEXT(97$);


;
;
;     Model statements for module:  Assign 67
;
325$          ASSIGN:        departurea2# c1=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,96):NEXT(330$);


;
;
;     Model statements for module:  Decide 97
;
330$          BRANCH,        1:
                             If,departurea2# c1==0,327$,Yes:
                             If,departurea2# c1==1,332$,Yes:
                             Else,331$,Yes;

;
;
;     Model statements for module:  Separate 4
;
331$          DUPLICATE,     100 - 50:
                             departurea2# c1-1,2133$,50:NEXT(2132$);

2132$         ASSIGN:        Separate 4.NumberOut Orig=Separate 4.NumberOut Orig + 1:NEXT(332$);

2133$         ASSIGN:        Separate 4.NumberOut Dup=Separate 4.NumberOut Dup + 1:NEXT(332$);


;
;
;     Model statements for module:  Process 9
;
332$          ASSIGN:        Process 9.NumberIn=Process 9.NumberIn + 1:
                             Process 9.WIP=Process 9.WIP+1;
2163$         STACK,         1:Save:NEXT(2137$);

2137$         QUEUE,         Process 9.Queue;
2136$         SEIZE,         2,VA:
                             Resource 4,1:NEXT(2135$);

2135$         DELAY:         HoursToBaseTime(expo(14/departurea2# c1,32)),,VA:NEXT(2178$);

2178$         ASSIGN:        Process 9.WaitTime=Process 9.WaitTime + Diff.WaitTime;
2142$         TALLY:         Process 9.WaitTimePerEntity,Diff.WaitTime,1;
2144$         TALLY:         Process 9.TotalTimePerEntity,Diff.StartTime,1;
2168$         ASSIGN:        Process 9.VATime=Process 9.VATime + Diff.VATime;
2169$         TALLY:         Process 9.VATimePerEntity,Diff.VATime,1;
2134$         RELEASE:       Resource 4,1;
2183$         STACK,         1:Destroy:NEXT(2182$);

2182$         ASSIGN:        Process 9.NumberOut=Process 9.NumberOut + 1:
                             Process 9.WIP=Process 9.WIP-1:NEXT(320$);


;
;
;     Model statements for module:  Create 19
;

2185$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c1:MinutesToBaseTime(1440):NEXT(2186$);

2186$         ASSIGN:        Create for shipment b shift2 c1.NumberOut=Create for shipment b shift2 c1.NumberOut + 1:NEXT(333$);


;
;
;     Model statements for module:  Create 39
;

2189$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c2:MinutesToBaseTime(1440):NEXT(2190$);

2190$         ASSIGN:        Create for shipment b shift1 c2.NumberOut=Create for shipment b shift1 c2.NumberOut + 1:NEXT(364$);


;
;
;     Model statements for module:  Decide 145
;
364$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2193$,Yes:
                             Else,2194$,Yes;
2193$         ASSIGN:        Decide 145.NumberOut True=Decide 145.NumberOut True + 1:NEXT(365$);

2194$         ASSIGN:        Decide 145.NumberOut False=Decide 145.NumberOut False + 1:NEXT(366$);


;
;
;     Model statements for module:  Assign 105
;
365$          ASSIGN:        departureb1# c2=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,103):NEXT(367$);


;
;
;     Model statements for module:  Decide 146
;
367$          BRANCH,        1:
                             If,departureb1# c2==0,358$,Yes:
                             If,departureb1# c2==1,368$,Yes:
                             Else,369$,Yes;

;
;
;     Model statements for module:  Separate 27
;
369$          DUPLICATE,     100 - 50:
                             departureb1# c2-1,2199$,50:NEXT(2198$);

2198$         ASSIGN:        Separate 27.NumberOut Orig=Separate 27.NumberOut Orig + 1:NEXT(368$);

2199$         ASSIGN:        Separate 27.NumberOut Dup=Separate 27.NumberOut Dup + 1:NEXT(368$);


;
;
;     Model statements for module:  Process 32
;
368$          ASSIGN:        Process 32.NumberIn=Process 32.NumberIn + 1:
                             Process 32.WIP=Process 32.WIP+1;
2229$         STACK,         1:Save:NEXT(2203$);

2203$         QUEUE,         Process 32.Queue;
2202$         SEIZE,         2,VA:
                             Resource 20,1:NEXT(2201$);

2201$         DELAY:         HoursToBaseTime(expo(10/departureb1# c2,39)),,VA:NEXT(2244$);

2244$         ASSIGN:        Process 32.WaitTime=Process 32.WaitTime + Diff.WaitTime;
2208$         TALLY:         Process 32.WaitTimePerEntity,Diff.WaitTime,1;
2210$         TALLY:         Process 32.TotalTimePerEntity,Diff.StartTime,1;
2234$         ASSIGN:        Process 32.VATime=Process 32.VATime + Diff.VATime;
2235$         TALLY:         Process 32.VATimePerEntity,Diff.VATime,1;
2200$         RELEASE:       Resource 20,1;
2249$         STACK,         1:Destroy:NEXT(2248$);

2248$         ASSIGN:        Process 32.NumberOut=Process 32.NumberOut + 1:
                             Process 32.WIP=Process 32.WIP-1:NEXT(352$);


;
;
;     Model statements for module:  Assign 101
;
352$          ASSIGN:        type=2:NEXT(97$);


;
;
;     Model statements for module:  Dispose 24
;
358$          ASSIGN:        Dispose 24.NumberOut=Dispose 24.NumberOut + 1;
2251$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 106
;
366$          ASSIGN:        departureb2# c2=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,104)
                             :NEXT(370$);


;
;
;     Model statements for module:  Decide 147
;
370$          BRANCH,        1:
                             If,departureb2# c2==0,358$,Yes:
                             If,departureb2# c2==1,371$,Yes:
                             Else,372$,Yes;

;
;
;     Model statements for module:  Separate 28
;
372$          DUPLICATE,     100 - 50:
                             departureb2# c2-1,2256$,50:NEXT(2255$);

2255$         ASSIGN:        Separate 28.NumberOut Orig=Separate 28.NumberOut Orig + 1:NEXT(371$);

2256$         ASSIGN:        Separate 28.NumberOut Dup=Separate 28.NumberOut Dup + 1:NEXT(371$);


;
;
;     Model statements for module:  Process 33
;
371$          ASSIGN:        Process 33.NumberIn=Process 33.NumberIn + 1:
                             Process 33.WIP=Process 33.WIP+1;
2286$         STACK,         1:Save:NEXT(2260$);

2260$         QUEUE,         Process 33.Queue;
2259$         SEIZE,         2,VA:
                             Resource 21,1:NEXT(2258$);

2258$         DELAY:         HoursToBaseTime(expo(14/departureb2# c2,40)),,VA:NEXT(2301$);

2301$         ASSIGN:        Process 33.WaitTime=Process 33.WaitTime + Diff.WaitTime;
2265$         TALLY:         Process 33.WaitTimePerEntity,Diff.WaitTime,1;
2267$         TALLY:         Process 33.TotalTimePerEntity,Diff.StartTime,1;
2291$         ASSIGN:        Process 33.VATime=Process 33.VATime + Diff.VATime;
2292$         TALLY:         Process 33.VATimePerEntity,Diff.VATime,1;
2257$         RELEASE:       Resource 21,1;
2306$         STACK,         1:Destroy:NEXT(2305$);

2305$         ASSIGN:        Process 33.NumberOut=Process 33.NumberOut + 1:
                             Process 33.WIP=Process 33.WIP-1:NEXT(352$);


;
;
;     Model statements for module:  Create 40
;

2308$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c2:MinutesToBaseTime(1440):NEXT(2309$);

2309$         ASSIGN:        Create for shipment c shift1 c2.NumberOut=Create for shipment c shift1 c2.NumberOut + 1:NEXT(373$);


;
;
;     Model statements for module:  Decide 148
;
373$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2312$,Yes:
                             Else,2313$,Yes;
2312$         ASSIGN:        Decide 148.NumberOut True=Decide 148.NumberOut True + 1:NEXT(374$);

2313$         ASSIGN:        Decide 148.NumberOut False=Decide 148.NumberOut False + 1:NEXT(375$);


;
;
;     Model statements for module:  Assign 107
;
374$          ASSIGN:        departurec1# c2=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,105):NEXT(376$);


;
;
;     Model statements for module:  Decide 149
;
376$          BRANCH,        1:
                             If,departurec1# c2==0,358$,Yes:
                             If,departurec1# c2==1,377$,Yes:
                             Else,378$,Yes;

;
;
;     Model statements for module:  Separate 29
;
378$          DUPLICATE,     100 - 50:
                             departurec1# c2-1,2318$,50:NEXT(2317$);

2317$         ASSIGN:        Separate 29.NumberOut Orig=Separate 29.NumberOut Orig + 1:NEXT(377$);

2318$         ASSIGN:        Separate 29.NumberOut Dup=Separate 29.NumberOut Dup + 1:NEXT(377$);


;
;
;     Model statements for module:  Process 34
;
377$          ASSIGN:        Process 34.NumberIn=Process 34.NumberIn + 1:
                             Process 34.WIP=Process 34.WIP+1;
2348$         STACK,         1:Save:NEXT(2322$);

2322$         QUEUE,         Process 34.Queue;
2321$         SEIZE,         2,VA:
                             Resource 22,1:NEXT(2320$);

2320$         DELAY:         HoursToBaseTime(expo(10/departurec1# c2,41)),,VA:NEXT(2363$);

2363$         ASSIGN:        Process 34.WaitTime=Process 34.WaitTime + Diff.WaitTime;
2327$         TALLY:         Process 34.WaitTimePerEntity,Diff.WaitTime,1;
2329$         TALLY:         Process 34.TotalTimePerEntity,Diff.StartTime,1;
2353$         ASSIGN:        Process 34.VATime=Process 34.VATime + Diff.VATime;
2354$         TALLY:         Process 34.VATimePerEntity,Diff.VATime,1;
2319$         RELEASE:       Resource 22,1;
2368$         STACK,         1:Destroy:NEXT(2367$);

2367$         ASSIGN:        Process 34.NumberOut=Process 34.NumberOut + 1:
                             Process 34.WIP=Process 34.WIP-1:NEXT(353$);


;
;
;     Model statements for module:  Assign 102
;
353$          ASSIGN:        type=3:NEXT(97$);


;
;
;     Model statements for module:  Assign 108
;
375$          ASSIGN:        departurec2# c2=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,106):NEXT(379$);


;
;
;     Model statements for module:  Decide 150
;
379$          BRANCH,        1:
                             If,departurec2# c2==0,358$,Yes:
                             If,departurec2# c2==1,380$,Yes:
                             Else,381$,Yes;

;
;
;     Model statements for module:  Separate 30
;
381$          DUPLICATE,     100 - 50:
                             departurec2# c2-1,2374$,50:NEXT(2373$);

2373$         ASSIGN:        Separate 30.NumberOut Orig=Separate 30.NumberOut Orig + 1:NEXT(380$);

2374$         ASSIGN:        Separate 30.NumberOut Dup=Separate 30.NumberOut Dup + 1:NEXT(380$);


;
;
;     Model statements for module:  Process 35
;
380$          ASSIGN:        Process 35.NumberIn=Process 35.NumberIn + 1:
                             Process 35.WIP=Process 35.WIP+1;
2404$         STACK,         1:Save:NEXT(2378$);

2378$         QUEUE,         Process 35.Queue;
2377$         SEIZE,         2,VA:
                             Resource 23,1:NEXT(2376$);

2376$         DELAY:         HoursToBaseTime(expo(14/departurec2# c2,42)),,VA:NEXT(2419$);

2419$         ASSIGN:        Process 35.WaitTime=Process 35.WaitTime + Diff.WaitTime;
2383$         TALLY:         Process 35.WaitTimePerEntity,Diff.WaitTime,1;
2385$         TALLY:         Process 35.TotalTimePerEntity,Diff.StartTime,1;
2409$         ASSIGN:        Process 35.VATime=Process 35.VATime + Diff.VATime;
2410$         TALLY:         Process 35.VATimePerEntity,Diff.VATime,1;
2375$         RELEASE:       Resource 23,1;
2424$         STACK,         1:Destroy:NEXT(2423$);

2423$         ASSIGN:        Process 35.NumberOut=Process 35.NumberOut + 1:
                             Process 35.WIP=Process 35.WIP-1:NEXT(353$);


;
;
;     Model statements for module:  Create 42
;

2426$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c2:MinutesToBaseTime(1440):NEXT(2427$);

2427$         ASSIGN:        Create for shipmenta shift2 c2.NumberOut=Create for shipmenta shift2 c2.NumberOut + 1:NEXT(355$);


;
;
;     Model statements for module:  Decide 142
;
355$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2430$,Yes:
                             Else,2431$,Yes;
2430$         ASSIGN:        Decide 142.NumberOut True=Decide 142.NumberOut True + 1:NEXT(354$);

2431$         ASSIGN:        Decide 142.NumberOut False=Decide 142.NumberOut False + 1:NEXT(356$);


;
;
;     Model statements for module:  Assign 103
;
354$          ASSIGN:        departurea1# c2=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,101):NEXT(357$);


;
;
;     Model statements for module:  Decide 143
;
357$          BRANCH,        1:
                             If,departurea1# c2==0,358$,Yes:
                             If,departurea1# c2==1,359$,Yes:
                             Else,360$,Yes;

;
;
;     Model statements for module:  Separate 25
;
360$          DUPLICATE,     100 - 50:
                             departurea1# c2-1,2436$,50:NEXT(2435$);

2435$         ASSIGN:        Separate 25.NumberOut Orig=Separate 25.NumberOut Orig + 1:NEXT(359$);

2436$         ASSIGN:        Separate 25.NumberOut Dup=Separate 25.NumberOut Dup + 1:NEXT(359$);


;
;
;     Model statements for module:  Process 30
;
359$          ASSIGN:        Process 30.NumberIn=Process 30.NumberIn + 1:
                             Process 30.WIP=Process 30.WIP+1;
2466$         STACK,         1:Save:NEXT(2440$);

2440$         QUEUE,         Process 30.Queue;
2439$         SEIZE,         2,VA:
                             Resource 18,1:NEXT(2438$);

2438$         DELAY:         HoursToBaseTime(expo(10/departurea1# c2,37)),,VA:NEXT(2481$);

2481$         ASSIGN:        Process 30.WaitTime=Process 30.WaitTime + Diff.WaitTime;
2445$         TALLY:         Process 30.WaitTimePerEntity,Diff.WaitTime,1;
2447$         TALLY:         Process 30.TotalTimePerEntity,Diff.StartTime,1;
2471$         ASSIGN:        Process 30.VATime=Process 30.VATime + Diff.VATime;
2472$         TALLY:         Process 30.VATimePerEntity,Diff.VATime,1;
2437$         RELEASE:       Resource 18,1;
2486$         STACK,         1:Destroy:NEXT(2485$);

2485$         ASSIGN:        Process 30.NumberOut=Process 30.NumberOut + 1:
                             Process 30.WIP=Process 30.WIP-1:NEXT(351$);


;
;
;     Model statements for module:  Assign 100
;
351$          ASSIGN:        type=1:NEXT(97$);


;
;
;     Model statements for module:  Assign 104
;
356$          ASSIGN:        departurea2# c2=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,102):NEXT(361$);


;
;
;     Model statements for module:  Decide 144
;
361$          BRANCH,        1:
                             If,departurea2# c2==0,358$,Yes:
                             If,departurea2# c2==1,363$,Yes:
                             Else,362$,Yes;

;
;
;     Model statements for module:  Separate 26
;
362$          DUPLICATE,     100 - 50:
                             departurea2# c2-1,2492$,50:NEXT(2491$);

2491$         ASSIGN:        Separate 26.NumberOut Orig=Separate 26.NumberOut Orig + 1:NEXT(363$);

2492$         ASSIGN:        Separate 26.NumberOut Dup=Separate 26.NumberOut Dup + 1:NEXT(363$);


;
;
;     Model statements for module:  Process 31
;
363$          ASSIGN:        Process 31.NumberIn=Process 31.NumberIn + 1:
                             Process 31.WIP=Process 31.WIP+1;
2522$         STACK,         1:Save:NEXT(2496$);

2496$         QUEUE,         Process 31.Queue;
2495$         SEIZE,         2,VA:
                             Resource 19,1:NEXT(2494$);

2494$         DELAY:         HoursToBaseTime(expo(14/departurea2# c2,38)),,VA:NEXT(2537$);

2537$         ASSIGN:        Process 31.WaitTime=Process 31.WaitTime + Diff.WaitTime;
2501$         TALLY:         Process 31.WaitTimePerEntity,Diff.WaitTime,1;
2503$         TALLY:         Process 31.TotalTimePerEntity,Diff.StartTime,1;
2527$         ASSIGN:        Process 31.VATime=Process 31.VATime + Diff.VATime;
2528$         TALLY:         Process 31.VATimePerEntity,Diff.VATime,1;
2493$         RELEASE:       Resource 19,1;
2542$         STACK,         1:Destroy:NEXT(2541$);

2541$         ASSIGN:        Process 31.NumberOut=Process 31.NumberOut + 1:
                             Process 31.WIP=Process 31.WIP-1:NEXT(351$);


;
;
;     Model statements for module:  Create 43
;

2544$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c2:MinutesToBaseTime(1440):NEXT(2545$);

2545$         ASSIGN:        Create for shipment b shift2 c2.NumberOut=Create for shipment b shift2 c2.NumberOut + 1:NEXT(364$);


;
;
;     Model statements for module:  Create 54
;

2548$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sb1ship# c3:MinutesToBaseTime(1440):NEXT(2549$);

2549$         ASSIGN:        Create for shipment b shift1 c3.NumberOut=Create for shipment b shift1 c3.NumberOut + 1:NEXT(395$);


;
;
;     Model statements for module:  Decide 166
;
395$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2552$,Yes:
                             Else,2553$,Yes;
2552$         ASSIGN:        Decide 166.NumberOut True=Decide 166.NumberOut True + 1:NEXT(396$);

2553$         ASSIGN:        Decide 166.NumberOut False=Decide 166.NumberOut False + 1:NEXT(397$);


;
;
;     Model statements for module:  Assign 126
;
396$          ASSIGN:        departureb1# c3=disc(0.674,0,0.717,1,0.783,2,0.810,3,0.918,4,0.973,5,1,6,109):NEXT(398$);


;
;
;     Model statements for module:  Decide 167
;
398$          BRANCH,        1:
                             If,departureb1# c3==0,389$,Yes:
                             If,departureb1# c3==1,399$,Yes:
                             Else,400$,Yes;

;
;
;     Model statements for module:  Separate 39
;
400$          DUPLICATE,     100 - 50:
                             departureb1# c3-1,2558$,50:NEXT(2557$);

2557$         ASSIGN:        Separate 39.NumberOut Orig=Separate 39.NumberOut Orig + 1:NEXT(399$);

2558$         ASSIGN:        Separate 39.NumberOut Dup=Separate 39.NumberOut Dup + 1:NEXT(399$);


;
;
;     Model statements for module:  Process 44
;
399$          ASSIGN:        Process 44.NumberIn=Process 44.NumberIn + 1:
                             Process 44.WIP=Process 44.WIP+1;
2588$         STACK,         1:Save:NEXT(2562$);

2562$         QUEUE,         Process 44.Queue;
2561$         SEIZE,         2,VA:
                             Resource 32,1:NEXT(2560$);

2560$         DELAY:         HoursToBaseTime(expo(10/departureb1# c3,45)),,VA:NEXT(2603$);

2603$         ASSIGN:        Process 44.WaitTime=Process 44.WaitTime + Diff.WaitTime;
2567$         TALLY:         Process 44.WaitTimePerEntity,Diff.WaitTime,1;
2569$         TALLY:         Process 44.TotalTimePerEntity,Diff.StartTime,1;
2593$         ASSIGN:        Process 44.VATime=Process 44.VATime + Diff.VATime;
2594$         TALLY:         Process 44.VATimePerEntity,Diff.VATime,1;
2559$         RELEASE:       Resource 32,1;
2608$         STACK,         1:Destroy:NEXT(2607$);

2607$         ASSIGN:        Process 44.NumberOut=Process 44.NumberOut + 1:
                             Process 44.WIP=Process 44.WIP-1:NEXT(383$);


;
;
;     Model statements for module:  Assign 122
;
383$          ASSIGN:        type=2:NEXT(97$);


;
;
;     Model statements for module:  Dispose 26
;
389$          ASSIGN:        Dispose 26.NumberOut=Dispose 26.NumberOut + 1;
2610$         DISPOSE:       Yes;


;
;
;     Model statements for module:  Assign 127
;
397$          ASSIGN:        departureb2# c3=disc(0.663,0,0.707,1,0.761,2,0.853,3,0.891,4,0.946,5,0.973,6,0.995,7,1,9,110)
                             :NEXT(401$);


;
;
;     Model statements for module:  Decide 168
;
401$          BRANCH,        1:
                             If,departureb2# c3==0,389$,Yes:
                             If,departureb2# c3==1,402$,Yes:
                             Else,403$,Yes;

;
;
;     Model statements for module:  Separate 40
;
403$          DUPLICATE,     100 - 50:
                             departureb2# c3-1,2615$,50:NEXT(2614$);

2614$         ASSIGN:        Separate 40.NumberOut Orig=Separate 40.NumberOut Orig + 1:NEXT(402$);

2615$         ASSIGN:        Separate 40.NumberOut Dup=Separate 40.NumberOut Dup + 1:NEXT(402$);


;
;
;     Model statements for module:  Process 45
;
402$          ASSIGN:        Process 45.NumberIn=Process 45.NumberIn + 1:
                             Process 45.WIP=Process 45.WIP+1;
2645$         STACK,         1:Save:NEXT(2619$);

2619$         QUEUE,         Process 45.Queue;
2618$         SEIZE,         2,VA:
                             Resource 33,1:NEXT(2617$);

2617$         DELAY:         HoursToBaseTime(expo(14/departureb2# c3,46)),,VA:NEXT(2660$);

2660$         ASSIGN:        Process 45.WaitTime=Process 45.WaitTime + Diff.WaitTime;
2624$         TALLY:         Process 45.WaitTimePerEntity,Diff.WaitTime,1;
2626$         TALLY:         Process 45.TotalTimePerEntity,Diff.StartTime,1;
2650$         ASSIGN:        Process 45.VATime=Process 45.VATime + Diff.VATime;
2651$         TALLY:         Process 45.VATimePerEntity,Diff.VATime,1;
2616$         RELEASE:       Resource 33,1;
2665$         STACK,         1:Destroy:NEXT(2664$);

2664$         ASSIGN:        Process 45.NumberOut=Process 45.NumberOut + 1:
                             Process 45.WIP=Process 45.WIP-1:NEXT(383$);


;
;
;     Model statements for module:  Create 55
;

2667$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sc1ship# c3:MinutesToBaseTime(1440):NEXT(2668$);

2668$         ASSIGN:        Create for shipment c shift1 c3.NumberOut=Create for shipment c shift1 c3.NumberOut + 1:NEXT(404$);


;
;
;     Model statements for module:  Decide 169
;
404$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2671$,Yes:
                             Else,2672$,Yes;
2671$         ASSIGN:        Decide 169.NumberOut True=Decide 169.NumberOut True + 1:NEXT(405$);

2672$         ASSIGN:        Decide 169.NumberOut False=Decide 169.NumberOut False + 1:NEXT(406$);


;
;
;     Model statements for module:  Assign 128
;
405$          ASSIGN:        departurec1# c3=disc(0.842,0,0.891,1,0.924,2,0.935,3,0.962,4,0.978,5,0.995,6,1,7,111):NEXT(407$);


;
;
;     Model statements for module:  Decide 170
;
407$          BRANCH,        1:
                             If,departurec1# c3==0,389$,Yes:
                             If,departurec1# c3==1,408$,Yes:
                             Else,409$,Yes;

;
;
;     Model statements for module:  Separate 41
;
409$          DUPLICATE,     100 - 50:
                             departurec1# c3-1,2677$,50:NEXT(2676$);

2676$         ASSIGN:        Separate 41.NumberOut Orig=Separate 41.NumberOut Orig + 1:NEXT(408$);

2677$         ASSIGN:        Separate 41.NumberOut Dup=Separate 41.NumberOut Dup + 1:NEXT(408$);


;
;
;     Model statements for module:  Process 46
;
408$          ASSIGN:        Process 46.NumberIn=Process 46.NumberIn + 1:
                             Process 46.WIP=Process 46.WIP+1;
2707$         STACK,         1:Save:NEXT(2681$);

2681$         QUEUE,         Process 46.Queue;
2680$         SEIZE,         2,VA:
                             Resource 34,1:NEXT(2679$);

2679$         DELAY:         HoursToBaseTime(expo(10/departurec1# c3,47)),,VA:NEXT(2722$);

2722$         ASSIGN:        Process 46.WaitTime=Process 46.WaitTime + Diff.WaitTime;
2686$         TALLY:         Process 46.WaitTimePerEntity,Diff.WaitTime,1;
2688$         TALLY:         Process 46.TotalTimePerEntity,Diff.StartTime,1;
2712$         ASSIGN:        Process 46.VATime=Process 46.VATime + Diff.VATime;
2713$         TALLY:         Process 46.VATimePerEntity,Diff.VATime,1;
2678$         RELEASE:       Resource 34,1;
2727$         STACK,         1:Destroy:NEXT(2726$);

2726$         ASSIGN:        Process 46.NumberOut=Process 46.NumberOut + 1:
                             Process 46.WIP=Process 46.WIP-1:NEXT(384$);


;
;
;     Model statements for module:  Assign 123
;
384$          ASSIGN:        type=3:NEXT(97$);


;
;
;     Model statements for module:  Assign 129
;
406$          ASSIGN:        departurec2# c3=disc(0.723,0,0.804,1,0.870,2,0.908,3,0.940,4,0.989,5,1,6,112):NEXT(410$);


;
;
;     Model statements for module:  Decide 171
;
410$          BRANCH,        1:
                             If,departurec2# c3==0,389$,Yes:
                             If,departurec2# c3==1,411$,Yes:
                             Else,412$,Yes;

;
;
;     Model statements for module:  Separate 42
;
412$          DUPLICATE,     100 - 50:
                             departurec2# c3-1,2733$,50:NEXT(2732$);

2732$         ASSIGN:        Separate 42.NumberOut Orig=Separate 42.NumberOut Orig + 1:NEXT(411$);

2733$         ASSIGN:        Separate 42.NumberOut Dup=Separate 42.NumberOut Dup + 1:NEXT(411$);


;
;
;     Model statements for module:  Process 47
;
411$          ASSIGN:        Process 47.NumberIn=Process 47.NumberIn + 1:
                             Process 47.WIP=Process 47.WIP+1;
2763$         STACK,         1:Save:NEXT(2737$);

2737$         QUEUE,         Process 47.Queue;
2736$         SEIZE,         2,VA:
                             Resource 35,1:NEXT(2735$);

2735$         DELAY:         HoursToBaseTime(expo(14/departurec2# c3,48)),,VA:NEXT(2778$);

2778$         ASSIGN:        Process 47.WaitTime=Process 47.WaitTime + Diff.WaitTime;
2742$         TALLY:         Process 47.WaitTimePerEntity,Diff.WaitTime,1;
2744$         TALLY:         Process 47.TotalTimePerEntity,Diff.StartTime,1;
2768$         ASSIGN:        Process 47.VATime=Process 47.VATime + Diff.VATime;
2769$         TALLY:         Process 47.VATimePerEntity,Diff.VATime,1;
2734$         RELEASE:       Resource 35,1;
2783$         STACK,         1:Destroy:NEXT(2782$);

2782$         ASSIGN:        Process 47.NumberOut=Process 47.NumberOut + 1:
                             Process 47.WIP=Process 47.WIP-1:NEXT(384$);


;
;
;     Model statements for module:  Create 57
;

2785$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sa2ship# c3:MinutesToBaseTime(1440):NEXT(2786$);

2786$         ASSIGN:        Create for shipmenta shift2 c3.NumberOut=Create for shipmenta shift2 c3.NumberOut + 1:NEXT(386$);


;
;
;     Model statements for module:  Decide 163
;
386$          BRANCH,        1:
                             If,((0+((day)*1440))<=tnow)&&(tnow<=(600+((day)*1440))),2789$,Yes:
                             Else,2790$,Yes;
2789$         ASSIGN:        Decide 163.NumberOut True=Decide 163.NumberOut True + 1:NEXT(385$);

2790$         ASSIGN:        Decide 163.NumberOut False=Decide 163.NumberOut False + 1:NEXT(387$);


;
;
;     Model statements for module:  Assign 124
;
385$          ASSIGN:        departurea1# c3=
                             disc(0.332,0,0.386,1,0.5,2,0.707,3,0.859,4,0.946,5,0.984,6,0.989,7,0.995,8,1,10,107):NEXT(388$);


;
;
;     Model statements for module:  Decide 164
;
388$          BRANCH,        1:
                             If,departurea1# c3==0,389$,Yes:
                             If,departurea1# c3==1,390$,Yes:
                             Else,391$,Yes;

;
;
;     Model statements for module:  Separate 37
;
391$          DUPLICATE,     100 - 50:
                             departurea1# c3-1,2795$,50:NEXT(2794$);

2794$         ASSIGN:        Separate 37.NumberOut Orig=Separate 37.NumberOut Orig + 1:NEXT(390$);

2795$         ASSIGN:        Separate 37.NumberOut Dup=Separate 37.NumberOut Dup + 1:NEXT(390$);


;
;
;     Model statements for module:  Process 42
;
390$          ASSIGN:        Process 42.NumberIn=Process 42.NumberIn + 1:
                             Process 42.WIP=Process 42.WIP+1;
2825$         STACK,         1:Save:NEXT(2799$);

2799$         QUEUE,         Process 42.Queue;
2798$         SEIZE,         2,VA:
                             Resource 30,1:NEXT(2797$);

2797$         DELAY:         HoursToBaseTime(expo(10/departurea1# c3,43)),,VA:NEXT(2840$);

2840$         ASSIGN:        Process 42.WaitTime=Process 42.WaitTime + Diff.WaitTime;
2804$         TALLY:         Process 42.WaitTimePerEntity,Diff.WaitTime,1;
2806$         TALLY:         Process 42.TotalTimePerEntity,Diff.StartTime,1;
2830$         ASSIGN:        Process 42.VATime=Process 42.VATime + Diff.VATime;
2831$         TALLY:         Process 42.VATimePerEntity,Diff.VATime,1;
2796$         RELEASE:       Resource 30,1;
2845$         STACK,         1:Destroy:NEXT(2844$);

2844$         ASSIGN:        Process 42.NumberOut=Process 42.NumberOut + 1:
                             Process 42.WIP=Process 42.WIP-1:NEXT(382$);


;
;
;     Model statements for module:  Assign 121
;
382$          ASSIGN:        type=1:NEXT(97$);


;
;
;     Model statements for module:  Assign 125
;
387$          ASSIGN:        departurea2# c3=disc(0.315,0,0.408,1,0.505,2,0.685,3,0.837,4,0.929,5,0.989,6,1,7,108):NEXT(392$);


;
;
;     Model statements for module:  Decide 165
;
392$          BRANCH,        1:
                             If,departurea2# c3==0,389$,Yes:
                             If,departurea2# c3==1,394$,Yes:
                             Else,393$,Yes;

;
;
;     Model statements for module:  Separate 38
;
393$          DUPLICATE,     100 - 50:
                             departurea2# c3-1,2851$,50:NEXT(2850$);

2850$         ASSIGN:        Separate 38.NumberOut Orig=Separate 38.NumberOut Orig + 1:NEXT(394$);

2851$         ASSIGN:        Separate 38.NumberOut Dup=Separate 38.NumberOut Dup + 1:NEXT(394$);


;
;
;     Model statements for module:  Process 43
;
394$          ASSIGN:        Process 43.NumberIn=Process 43.NumberIn + 1:
                             Process 43.WIP=Process 43.WIP+1;
2881$         STACK,         1:Save:NEXT(2855$);

2855$         QUEUE,         Process 43.Queue;
2854$         SEIZE,         2,VA:
                             Resource 31,1:NEXT(2853$);

2853$         DELAY:         HoursToBaseTime(expo(14/departurea2# c3,44)),,VA:NEXT(2896$);

2896$         ASSIGN:        Process 43.WaitTime=Process 43.WaitTime + Diff.WaitTime;
2860$         TALLY:         Process 43.WaitTimePerEntity,Diff.WaitTime,1;
2862$         TALLY:         Process 43.TotalTimePerEntity,Diff.StartTime,1;
2886$         ASSIGN:        Process 43.VATime=Process 43.VATime + Diff.VATime;
2887$         TALLY:         Process 43.VATimePerEntity,Diff.VATime,1;
2852$         RELEASE:       Resource 31,1;
2901$         STACK,         1:Destroy:NEXT(2900$);

2900$         ASSIGN:        Process 43.NumberOut=Process 43.NumberOut + 1:
                             Process 43.WIP=Process 43.WIP-1:NEXT(382$);


;
;
;     Model statements for module:  Create 58
;

2903$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sb2ship# c3:MinutesToBaseTime(1440):NEXT(2904$);

2904$         ASSIGN:        Create for shipment b shift2 c3.NumberOut=Create for shipment b shift2 c3.NumberOut + 1:NEXT(395$);


;
;
;     Model statements for module:  Create 101
;

2907$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c1:MinutesToBaseTime(1440):NEXT(2908$);

2908$         ASSIGN:        Create for shipmenta shift1 c1.NumberOut=Create for shipmenta shift1 c1.NumberOut + 1:NEXT(324$);


;
;
;     Model statements for module:  Create 102
;

2911$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c2:MinutesToBaseTime(1440):NEXT(2912$);

2912$         ASSIGN:        Create for shipmenta shift1 c2.NumberOut=Create for shipmenta shift1 c2.NumberOut + 1:NEXT(355$);


;
;
;     Model statements for module:  Create 104
;

2915$         CREATE,        1,MinutesToBaseTime(0.0001),Entity sa1ship# c3:MinutesToBaseTime(1440):NEXT(2916$);

2916$         ASSIGN:        Create for shipmenta shift1 c3.NumberOut=Create for shipmenta shift1 c3.NumberOut + 1:NEXT(386$);


;
;
;     Model statements for module:  Create 109
;

2919$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c1:MinutesToBaseTime(1440):NEXT(2920$);

2920$         ASSIGN:        Create for shipment c shift2 c1.NumberOut=Create for shipment c shift2 c1.NumberOut + 1:NEXT(342$);


;
;
;     Model statements for module:  Create 110
;

2923$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c2:MinutesToBaseTime(1440):NEXT(2924$);

2924$         ASSIGN:        Create for shipment c shift2 c2.NumberOut=Create for shipment c shift2 c2.NumberOut + 1:NEXT(373$);


;
;
;     Model statements for module:  Create 111
;

2927$         CREATE,        1,MinutesToBaseTime(600.0001),Entity sc2ship# c3:MinutesToBaseTime(1440):NEXT(2928$);

2928$         ASSIGN:        Create for shipment c shift2 c3.NumberOut=Create for shipment c shift2 c3.NumberOut + 1:NEXT(404$);









